File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7924,8 +7924,10 @@ void TypeChecker::validateDeclForNameLookup(ValueDecl *D) {
7924
7924
validateAccessControl (typealias);
7925
7925
7926
7926
ProtocolRequirementTypeResolver resolver;
7927
+ TypeResolutionOptions options =
7928
+ TypeResolutionFlags::TypeAliasUnderlyingType;
7927
7929
if (validateType (typealias->getUnderlyingTypeLoc (),
7928
- typealias, TypeResolutionOptions () , &resolver)) {
7930
+ typealias, options , &resolver)) {
7929
7931
typealias->setInvalid ();
7930
7932
typealias->getUnderlyingTypeLoc ().setInvalidType (Context);
7931
7933
}
Original file line number Diff line number Diff line change @@ -290,3 +290,12 @@ struct Y11: P11 { }
290
290
extension P11 {
291
291
func foo( _: X11 < Self . A > ) { }
292
292
}
293
+
294
+ // Ordering issue
295
+ struct SomeConformingType : UnboundGenericAliasProto {
296
+ func f( _: G < Int > ) { }
297
+ }
298
+
299
+ protocol UnboundGenericAliasProto {
300
+ typealias G = X
301
+ }
You can’t perform that action at this time.
0 commit comments