mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add basic compilation tests from swift-compiler-crashes (https://github.com/practicalswift/swift-compiler-crashes.git)
Swift SVN r21693
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 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])
|
||||
Reference in New Issue
Block a user