Files
swift-mirror/validation-test/compiler_crashers/027-void-map-over-sequence.swift

12 lines
291 B
Swift

// RUN: %swift %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 : SequenceType where S.Generator.Element == T>(_ c: S) {
map(c) { self.b[$0] = true }
}
}
a([1])