Skip to content

Commit f606979

Browse files
committed
@_neverEmitIntoClient -> @export(interface) in tests
1 parent d034276 commit f606979

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Sema/restricted-import-embedded-inlinable-conformances.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func internalConformanceInTypealias() {
4343
_ = NormalProtoAssoc<NormalStruct>() // expected-ioi-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary'}}}
4444
}
4545

46-
@_neverEmitIntoClient
46+
@export(interface)
4747
func internalConformanceInTypealiasNEIC() {
4848
let x: NormalProtoAssoc<NormalStruct>? = nil // okay
4949
_ = x
@@ -70,7 +70,7 @@ func internalConformanceInBoundGeneric() {
7070
_ = NormalProtoAssocHolder(nil as NormalStruct?) // expected-ioi-error 2 {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary'}}}
7171
}
7272

73-
@_neverEmitIntoClient
73+
@export(interface)
7474
func internalConformanceInBoundGenericNEIC() {
7575
let x: NormalProtoAssocHolder<NormalStruct>? = nil // okay
7676
_ = x
@@ -90,7 +90,7 @@ func internalDowncast(_ x: Any) -> Bool {
9090
return normal || alias
9191
}
9292

93-
@_neverEmitIntoClient
93+
@export(interface)
9494
func internalDowncastNEIC(_ x: Any) -> Bool {
9595
let normal = x is NormalProtoAssocHolder<NormalStruct> // okay
9696
let alias = x is NormalProtoAssoc<NormalStruct> // okay
@@ -121,7 +121,7 @@ func internalSwitch(_ x: Any) {
121121
}
122122
}
123123

124-
@_neverEmitIntoClient
124+
@export(interface)
125125
func internalSwitchNEIC(_ x: Any) {
126126
switch x {
127127
case let holder as NormalProtoAssocHolder<NormalStruct>: // okay
@@ -152,7 +152,7 @@ func internalEnum() {
152152
_ = NormalProtoEnumUser<NormalStruct>.a // expected-ioi-error 2 {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as implementation-only}}
153153
}
154154

155-
@_neverEmitIntoClient
155+
@export(interface)
156156
func internalEnumNEIC() {
157157
let x: NormalProtoEnumUser<NormalStruct> = .a // okay
158158
_ = x
@@ -169,7 +169,7 @@ func internalFunc() {
169169
testFuncImpl(NormalStruct.self) // expected-ioi-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as implementation-only}}
170170
}
171171

172-
@_neverEmitIntoClient
172+
@export(interface)
173173
func internalFuncNEIC() {
174174
testFuncImpl(NormalStruct.self) // okay
175175
}

0 commit comments

Comments
 (0)