mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
For example:
class Foo<T> {
let test: Bool = false
let items: [Int] = []
func foo() {
if test {} // crashes on test
for i in items {} // crashes on items
}
}
We were picking up the incorrect containing type (Bool rather than Foo<T>).
Resolves rdar://problem/36871908.
54 KiB
54 KiB