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/ModuleInterface/module_shadowing.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
import ShadowyHorror
30
30
// OTHER-DAG: ShadowyHorror.module_shadowing:{{[0-9]+:[0-9]+}}: warning: public class 'ShadowyHorror.module_shadowing' shadows module 'module_shadowing', which may cause failures when importing 'module_shadowing' or its clients in some configurations; please rename either the class 'ShadowyHorror.module_shadowing' or the module 'module_shadowing', or see https://github.com/apple/swift/issues/56573 for workarounds{{$}}
Copy file name to clipboardExpand all lines: test/SPI/implementation_only_spi_import_exposability.swift
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ public protocol IOIProtocol {}
27
27
#elseif CLIENT
28
28
29
29
@_spi(A)@_implementationOnlyimport Lib
30
+
// expected-warning @-1 {{'@_implementationOnly' is deprecated, use 'internal import' instead}}
30
31
31
32
@_spi(B)publicfunc leakSPIStruct(_ a:SPIStruct)->SPIStruct{fatalError()} // expected-warning 2 {{cannot use struct 'SPIStruct' here; 'Lib' has been imported as implementation-only}}
32
33
@_spi(B)publicfunc leakIOIStruct(_ a:IOIStruct)->IOIStruct{fatalError()} // expected-warning 2 {{cannot use struct 'IOIStruct' here; 'Lib' has been imported as implementation-only}}
Copy file name to clipboardExpand all lines: test/SPI/report-ioi-in-spi.swift
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ public struct IOIStruct {
26
26
//--- ClientSPIOnlyMode.swift
27
27
28
28
@_implementationOnlyimport Lib
29
+
// expected-warning @-1 {{'@_implementationOnly' is deprecated, use 'internal import' instead}}
29
30
30
31
@_spi(X)publicfunc spiClient(s:IOIStruct)->IOIStruct{ // expected-error 2 {{cannot use struct 'IOIStruct' here; 'Lib' has been imported as implementation-only}}
31
32
returnIOIStruct()
@@ -39,6 +40,7 @@ public struct IOIStruct {
39
40
//--- ClientDefaultMode.swift
40
41
41
42
@_implementationOnlyimport Lib
43
+
// expected-warning @-1 {{'@_implementationOnly' is deprecated, use 'internal import' instead}}
42
44
43
45
@_spi(X)publicfunc spiClient(s:IOIStruct)->IOIStruct{ // expected-warning 2 {{cannot use struct 'IOIStruct' here; 'Lib' has been imported as implementation-only}}
0 commit comments