Files
swift-mirror/validation-test/compiler_crashers_fixed/00027-void-map-over-sequence.swift
practicalswift c4866885c8 Rename old crash cases to match the current naming scheme.
Will allow for easy import of crash cases from swift-compiler-crashes.
2015-12-10 16:50:15 +01:00

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