Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0051-sr3212.swift
Slava Pestov 412559af79 Add test cases for a few bugs that seem to be fixed already
Cleaning out some old JIRAs, don't want these to regress...
2017-01-04 02:02:29 -08:00

19 lines
245 B
Swift

// RUN: %target-swift-frontend %s -emit-silgen
protocol CType {
init()
}
protocol BType {
associatedtype C: CType
}
protocol A {
associatedtype B: BType
typealias C = B.C
}
func test<T: A>(_ a: T) -> T.C {
return T.C()
}