You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
71
72
publicclassInheritsFromClazzAlias:ClazzAlias{}
72
73
74
+
// expected-warning@+2 {{'ClazzAlias' aliases 'Original.Clazz' and cannot be used here because 'Original' was not imported by this file; this is an error in the Swift 6 language mode}}
75
+
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
// expected-warning@+2 {{'StructAlias' aliases 'Original.Struct' and cannot be used in an '@inlinable' function because 'Original' was not imported by this file; this is an error in the Swift 6 language mode}}
75
80
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
@@ -80,6 +85,10 @@ public class InheritsFromClazzAlias: ClazzAlias {}
80
85
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
81
86
publicfunc takesGeneric<T:ProtoAlias>(_ t:T){}
82
87
88
+
// expected-warning@+2 {{'ProtoAlias' aliases 'Original.Proto' and cannot be used here because 'Original' was not imported by this file; this is an error in the Swift 6 language mode}}
89
+
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
// expected-warning@+2 {{'WrapperAlias' aliases 'Original.Wrapper' and cannot be used as property wrapper here because 'Original' was not imported by this file; this is an error in the Swift 6 language mode}}
85
94
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
@@ -92,6 +101,11 @@ extension StructAlias {
92
101
publicfunc someFunc(){}
93
102
}
94
103
104
+
// expected-warning@+2 {{'StructAlias' aliases 'Original.Struct' and cannot be used in an extension with public, package, or '@usableFromInline' members because 'Original' was not imported by this file; this is an error in the Swift 6 language mode}}
105
+
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
0 commit comments