Lines Matching refs:parameters

28 // Parse type parameters with a bound
39 // Parse multiple type parameters.
43 // Parse multiple type parameters--grammatically ambiguous with protocol refs.
60 // Parse both type parameters and protocol references.
64 // Type parameters with improper bounds.
73 // Okay: forward declaration without type parameters.
76 // Okay: forward declarations with type parameters.
79 // Okay: forward declaration without type parameters following ones
80 // with type parameters.
83 // Okay: definition of class with type parameters that was formerly
84 // declared with the same type parameters.
88 // Mismatched parameters in declaration of @interface following @class.
97 // Mismatched parameters in subsequent forward declarations.
102 // Mismatch parameters in declaration of @class following @interface.
106 …cted-error{{forward declaration of non-parameterized class 'NSObject' cannot have type parameters}}
112 … NSNumber : NSObject // expected-error{{class 'NSNumber' previously declared with type parameters}}
117 // Okay: definition of class with type parameters that was formerly
118 // declared without type parameters.
142 // Missing type parameters.
143 @interface PC1<T> () // expected-error{{extension has too few type parameters (expected 2, have 1)}}
146 // Extra type parameters.
147 @interface PC1<T, U, V> (Cat3) // expected-error{{category has too many type parameters (expected 2…
156 …t1) // expected-error{{category of non-parameterized class 'NSObject' cannot have type parameters}}
159 …() // expected-error{{extension of non-parameterized class 'NSObject' cannot have type parameters}}
163 // @implementations cannot have type parameters
165 @implementation PC1<T : id> // expected-error{{@implementation cannot have type parameters}}
171 @implementation PC1<T> (Cat1) // expected-error{{@implementation cannot have type parameters}}
174 @implementation PC1<T : id> (Cat2) // expected-error{{@implementation cannot have type parameters}}
180 // Interfaces involving type parameters