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
internalimport ConformanceDefinition // expected-note 2 {{extension of struct 'ConformingType' imported as 'internal' from 'ConformanceDefinition' here}}
25
+
26
+
publicfunc useInAPI(a:anyProto=ConformingType()){ // expected-error {{cannot use conformance of 'ConformingType' to 'Proto' here; 'ConformanceDefinition' was not imported publicly}}
27
+
}
28
+
29
+
@inlinablepublicfunc inlinableFunc(){
30
+
let _:anyProto=ConformingType() // expected-error {{cannot use conformance of 'ConformingType' to 'Proto' here; 'ConformanceDefinition' was not imported publicly}}
internalimport Original // expected-note 2 {{class 'Clazz' imported as 'internal' from 'Original' here}}
24
+
25
+
// expected-error@+1 {{'ClazzAlias' aliases 'Original.Clazz' and cannot be used here because 'Original' was not imported publicly}}
26
+
publicclassInheritsFromClazzAlias:ClazzAlias{}
27
+
28
+
@inlinablepublicfunc inlinableFunc(){
29
+
// expected-error@+1 {{'ClazzAlias' aliases 'Original.Clazz' and cannot be used in an '@inlinable' function because 'Original' was not imported publicly}}
0 commit comments