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
Partially revert #77236 in order to work
around some issues related to the way `@_spi` attributes are printed and
checked in swiftinterfaces.
Resolves rdar://143029729.
Copy file name to clipboardExpand all lines: test/SPI/spi-only-import-exportability.swift
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,6 @@ public func implementationDetailsUser() {
150
150
publicstructClientStruct{
151
151
#if !SKIP_ERRORS
152
152
publicvara:SPIOnlyStruct // expected-error {{cannot use struct 'SPIOnlyStruct' here; 'SPIOnlyImportedLib' was imported for SPI only}}
153
-
// expected-error@+1 {{cannot use property 'wrappedValue' here; 'SPIOnlyImportedLib' was imported for SPI only}}
154
153
@SPIOnlyPropertyWrapper(42)publicvaraWrapped:Any // expected-error {{cannot use generic struct 'SPIOnlyPropertyWrapper' as property wrapper here; 'SPIOnlyImportedLib' was imported for SPI only}}
// expected-note@-1 2 {{generic struct 'FileprivateImportWrapper' imported as 'fileprivate' from 'FileprivateLib' here}}
89
89
// expected-note@-2 2 {{initializer 'init(wrappedValue:)' imported as 'fileprivate' from 'FileprivateLib' here}}
90
90
// expected-note@-3 2 {{protocol 'FileprivateImportProto' imported as 'fileprivate' from 'FileprivateLib' here}}
91
-
// expected-note@-4 2 {{property 'wrappedValue' imported as 'fileprivate' from 'FileprivateLib' here}}
92
91
93
92
privateimport PrivateLib
94
93
// expected-note@-1 10 {{struct 'PrivateImportType' imported as 'private' from 'PrivateLib' here}}
@@ -129,7 +128,6 @@ public struct GenericType<T, U> {}
129
128
130
129
@FileprivateImportWrapper // expected-error {{initializer 'init(wrappedValue:)' is fileprivate and cannot be referenced from an '@inlinable' function}}
131
130
// expected-error @-1 {{generic struct 'FileprivateImportWrapper' is fileprivate and cannot be referenced from an '@inlinable' function}}
132
-
// expected-error @-2 {{property 'wrappedValue' is fileprivate and cannot be referenced from an '@inlinable' function}}
133
131
varwrappedFileprivate:PublicImportType
134
132
135
133
let _:GenericType<PublicImportType,PublicImportType>
@@ -170,7 +168,6 @@ public struct GenericType<T, U> {}
170
168
171
169
@FileprivateImportWrapper // expected-error {{initializer 'init(wrappedValue:)' is fileprivate and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
172
170
// expected-error @-1 {{generic struct 'FileprivateImportWrapper' is fileprivate and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
173
-
// expected-error @-2 {{property 'wrappedValue' is fileprivate and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
174
171
varwrappedFileprivate:PublicImportType
175
172
176
173
let _:GenericType<PublicImportType,PublicImportType>
Copy file name to clipboardExpand all lines: test/Sema/implementation-only-import-in-decls.swift
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,6 @@ public struct TestInit {
56
56
57
57
publicstructTestPropertyWrapper{
58
58
@BadWrapperpublicvarBadProperty:Int // expected-error {{cannot use struct 'BadWrapper' as property wrapper here; 'BADLibrary' has been imported as implementation-only}}
59
-
// expected-error@-1 {{cannot use property 'wrappedValue' here; 'BADLibrary' has been imported as implementation-only}}
60
59
}
61
60
62
61
publicprotocolTestInherited:BadProto{} // expected-error {{cannot use protocol 'BadProto' here; 'BADLibrary' has been imported as implementation-only}}
Copy file name to clipboardExpand all lines: test/Sema/missing-import-typealias.swift
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,6 @@ public class InheritsFromClazzAlias: ClazzAlias {}
81
81
publicfunc takesGeneric<T:ProtoAlias>(_ t:T){}
82
82
83
83
publicstructHasMembers{
84
-
// expected-warning@+3 {{cannot use property 'wrappedValue' here; 'Original' was not imported by this file}}
85
84
// 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}}
86
85
// expected-note@+1 {{The missing import of module 'Original' will be added implicitly}}
0 commit comments