blob: 187dc4ecffc1d29dd8c80e52a70599e1cdf37500 [file] [log] [blame]
// RUN: %target-parse-verify-swift
class C { }
protocol P { // expected-note{{requirement specified as 'Self.AssocP' : 'C' [with Self = X]}}
associatedtype AssocP : C
}
struct X : P { // expected-error{{'P' requires that 'AssocP' (aka 'Int') inherit from 'C'}}
typealias AssocP = Int
}