mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
292 B
Swift
13 lines
292 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
// Test case submitted to project by https://github.com/tmu (Teemu Kurppa)
|
|
// rdar://18118173
|
|
|
|
class a<T : Hashable> {
|
|
var b = [T : Bool]()
|
|
init<S : Sequence where S.Iterator.Element == T>(_ c: S) {
|
|
c.map { self.b[$0] = true }
|
|
}
|
|
}
|
|
a([1])
|