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/Sema/access-level-and-non-resilient-import.swift
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,9 @@
45
45
46
46
import DefaultLib // expected-error {{module 'DefaultLib' was not compiled with library evolution support; using it means binary compatibility for 'Client_Swift5' can't be guaranteed}} {{1-1=internal }}
47
47
publicimport PublicLib // expected-error {{module 'PublicLib' was not compiled with library evolution support; using it means binary compatibility for 'Client_Swift5' can't be guaranteed}} {{1-7=internal}}
48
+
// expected-warning @-1 {{public import of 'PublicLib' was not used in public declarations or inlinable code}}
48
49
packageimport PackageLib
50
+
// expected-warning @-1 {{package import of 'PackageLib' was not used in package declarations}}
49
51
internalimport InternalLib
50
52
fileprivateimport FileprivateLib
51
53
privateimport PrivateLib
@@ -54,7 +56,9 @@ private import PrivateLib
54
56
55
57
import DefaultLib
56
58
publicimport PublicLib // expected-error {{module 'PublicLib' was not compiled with library evolution support; using it means binary compatibility for 'Client_Swift6' can't be guaranteed}} {{1-7=internal}}
59
+
// expected-warning @-1 {{public import of 'PublicLib' was not used in public declarations or inlinable code}}
57
60
packageimport PackageLib
61
+
// expected-warning @-1 {{package import of 'PackageLib' was not used in package declarations}}
Copy file name to clipboardExpand all lines: test/Sema/access-level-import-exportability.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -119,10 +119,10 @@ public struct PrivateLibWrapper<T> {
119
119
120
120
/// Short test mostly to count the notes.
121
121
//--- MinimalClient.swift
122
-
publicimport PublicLib
123
-
packageimport PackageLib
124
-
internalimport InternalLib // expected-note@:1 {{struct 'InternalImportType' imported as 'internal' from 'InternalLib' here}}
125
-
fileprivateimport FileprivateLib // expected-note@:1 {{class 'FileprivateImportClass' imported as 'fileprivate' from 'FileprivateLib' here}}
122
+
publicimport PublicLib // expected-warning {{public import of 'PublicLib' was not used in public declarations or inlinable code}}
123
+
packageimport PackageLib // expected-warning {{package import of 'PackageLib' was not used in package declarations}}
124
+
internalimport InternalLib // expected-note {{struct 'InternalImportType' imported as 'internal' from 'InternalLib' here}}
125
+
fileprivateimport FileprivateLib // expected-note {{class 'FileprivateImportClass' imported as 'fileprivate' from 'FileprivateLib' here}}
126
126
privateimport PrivateLib
127
127
128
128
publicfunc PublicFuncUsesInternal(_:InternalImportType){ // expected-error {{function cannot be declared public because its parameter uses an internal type}}
0 commit comments