Files
swift-mirror/test/SILGen/Inputs/struct_with_initializer.swift
Slava Pestov 2fac86496f SILGen: Fix corner-case in emission of extension initializer
If the initializer is in a different file than the original
type, and the original type contains a stored property that
has both an initializer *and* a declared type, then the
initializer expression will not have been type checked.

So we must look at the type of pattern, which should still
be correct.

Fixes <https://bugs.swift.org/browse/SR-3942> and
<rdar://problem/25705157>.
2017-02-13 16:27:40 -08:00

58 B