Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0057-rdar29587093.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

31 lines
366 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
protocol P {
associatedtype A
func f()
}
extension P where A == Int {
func f() {
print("cool")
}
}
extension P {
func f() { print("semi-uncool") }
func g() {
f()
}
}
struct X<T> : P {
typealias A = T
}
extension X where A == Int {
func f() {
print("cool2")
}
}
X<Int>().f()
X<Int>().g()