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
Copy file name to clipboardExpand all lines: test/NameLookup/members_transitive_multifile_access_level.swift
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,7 @@ extension Int {
60
60
internalfunc usesTypealiasInInternalUsesOnly(x:TypealiasInInternalUsesOnly){} // expected-error {{type alias 'TypealiasInInternalUsesOnly' is not available due to missing import of defining module 'InternalUsesOnly'}}
61
61
packagefunc usesTypealiasInPackageUsesOnly(x:TypealiasInPackageUsesOnly){} // expected-error {{type alias 'TypealiasInPackageUsesOnly' is not available due to missing import of defining module 'PackageUsesOnly'}}
62
62
publicfunc usesTypealiasInPublicUsesOnly(x:TypealiasInPublicUsesOnly){} // expected-error {{type alias 'TypealiasInPublicUsesOnly' is not available due to missing import of defining module 'PublicUsesOnly'}}
63
-
// expected-warning@-1 {{cannot use type alias 'TypealiasInPublicUsesOnly' here; 'PublicUsesOnly' was not imported by this file}}
64
63
publicfunc usesTypealiasInMixedUses(x:TypealiasInMixedUses){} // expected-error {{type alias 'TypealiasInMixedUses' is not available due to missing import of defining module 'MixedUses'}}
65
-
// expected-warning@-1 {{cannot use type alias 'TypealiasInMixedUses' here; 'MixedUses' was not imported by this file}}
66
64
internalfunc usesTypealiasInMixedUses_Internal(x:TypealiasInMixedUses){} // expected-error {{type alias 'TypealiasInMixedUses' is not available due to missing import of defining module 'MixedUses'}}
internalfunc usesTypealiasInInternalUsesOnly(x:Int.TypealiasInInternalUsesOnly){} // expected-error {{type alias 'TypealiasInInternalUsesOnly' is not available due to missing import of defining module 'InternalUsesOnly'}}
79
77
packagefunc usesTypealiasInPackageUsesOnly(x:Int.TypealiasInPackageUsesOnly){} // expected-error {{type alias 'TypealiasInPackageUsesOnly' is not available due to missing import of defining module 'PackageUsesOnly'}}
80
78
publicfunc usesTypealiasInPublicUsesOnly(x:Int.TypealiasInPublicUsesOnly){} // expected-error {{type alias 'TypealiasInPublicUsesOnly' is not available due to missing import of defining module 'PublicUsesOnly'}}
81
-
// expected-warning@-1 {{cannot use type alias 'TypealiasInPublicUsesOnly' here; 'PublicUsesOnly' was not imported by this file}}
82
79
publicfunc usesTypealiasInMixedUses(x:Int.TypealiasInMixedUses){} // expected-error {{type alias 'TypealiasInMixedUses' is not available due to missing import of defining module 'MixedUses'}}
83
-
// expected-warning@-1 {{cannot use type alias 'TypealiasInMixedUses' here; 'MixedUses' was not imported by this file}}
84
80
internalfunc usesTypealiasInMixedUses_Internal(x:Int.TypealiasInMixedUses){} // expected-error {{type alias 'TypealiasInMixedUses' is not available due to missing import of defining module 'MixedUses'}}
extensionInt.NestedInPublicUsesOnly{ // expected-error {{struct 'NestedInPublicUsesOnly' is not available due to missing import of defining module 'PublicUsesOnly'}}
107
-
// expected-warning@-1 {{cannot use struct 'NestedInPublicUsesOnly' in an extension with public or '@usableFromInline' members; 'PublicUsesOnly' was not imported by this file}}
108
103
publicfunc publicMethod(){}
109
104
}
110
105
111
106
extensionInt.NestedInMixedUses{ // expected-error {{struct 'NestedInMixedUses' is not available due to missing import of defining module 'MixedUses'}}
112
-
// expected-warning@-1 {{cannot use struct 'NestedInMixedUses' in an extension with public or '@usableFromInline' members; 'MixedUses' was not imported by this file}}
0 commit comments