blob: e89e20fa78dab247c11f527d58c6d33e5f45e25b [file] [log] [blame]
// RUN: not %target-swift-frontend -typecheck %s
struct S {
// presence of a static instance seems to be
// necessary to cause this problem
static let s = S()
}
protocol P {
associatedtype T
init(t: T)
}
extension S: P {
// Uncomment to stop assertion:
// init(t: Int) {
// self = S()
// }
}