File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ void IterativeTypeChecker::processResolveTypeDecl(
341
341
if (typeAliasDecl->getDeclContext ()->isModuleScopeContext () &&
342
342
typeAliasDecl->getGenericParams () == nullptr ) {
343
343
TypeResolutionOptions options =
344
- TypeResolutionFlags::TypeAliasUnderlyingType;
344
+ TypeResolutionFlags::TypeAliasUnderlyingType;
345
345
if (!typeAliasDecl->getDeclContext ()->isCascadingContextForLookup (
346
346
/* functionsAreNonCascading*/ true )) {
347
347
options |= TypeResolutionFlags::KnownNonCascadingDependency;
Original file line number Diff line number Diff line change @@ -3815,9 +3815,6 @@ void TypeChecker::resolveIsObjC(ValueDecl *VD) {
3815
3815
auto dc = VD->getDeclContext ();
3816
3816
if (dc->getAsClassOrClassExtensionContext ()) {
3817
3817
// Members of classes can be @objc.
3818
-
3819
- // FIXME: We
3820
- validateDeclForNameLookup (VD);
3821
3818
}
3822
3819
else if (isa<ClassDecl>(VD)) {
3823
3820
// Classes can be @objc.
@@ -7990,8 +7987,10 @@ void TypeChecker::validateDeclForNameLookup(ValueDecl *D) {
7990
7987
validateAccessControl (typealias);
7991
7988
7992
7989
ProtocolRequirementTypeResolver resolver;
7990
+ TypeResolutionOptions options =
7991
+ TypeResolutionFlags::TypeAliasUnderlyingType;
7993
7992
if (validateType (typealias->getUnderlyingTypeLoc (),
7994
- typealias, TypeResolutionOptions () , &resolver)) {
7993
+ typealias, options , &resolver)) {
7995
7994
typealias->setInvalid ();
7996
7995
typealias->getUnderlyingTypeLoc ().setInvalidType (Context);
7997
7996
}
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