Skip to content

Commit 0e8c66b

Browse files
committed
Tests: Update package_enums_treat_exhaustive.swift.
After reverting #75745 some expectations needed to change in this test.
1 parent 49b59f6 commit 0e8c66b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Sema/package_enums_treat_exhaustive.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public func k(_ arg: FrozenPublicEnum) -> Int {
302302
// package-name; requires @unknown default.
303303
import Utils
304304

305-
package func n(_ arg: FrozenUfiPkgEnum) -> Int {
305+
package func n(_ arg: FrozenUfiPkgEnum) -> Int { // expected-error {{cannot find type 'FrozenUfiPkgEnum' in scope}}
306306
switch arg { // no-warning
307307
case .one:
308308
return 1
@@ -311,8 +311,8 @@ package func n(_ arg: FrozenUfiPkgEnum) -> Int {
311311
}
312312
}
313313

314-
package func g(_ arg: UfiPkgEnum) -> Int {
315-
switch arg { // expected-error {{switch covers known cases, but 'UfiPkgEnum' may have additional unknown values}} {{none}} expected-note {{handle unknown values using "@unknown default"}}
314+
package func g(_ arg: UfiPkgEnum) -> Int { // expected-error {{cannot find type 'UfiPkgEnum' in scope}}
315+
switch arg {
316316
case .one:
317317
return 1
318318
case .two(let val):
@@ -321,8 +321,8 @@ package func g(_ arg: UfiPkgEnum) -> Int {
321321
}
322322

323323
@inlinable
324-
package func gi(_ arg: UfiPkgEnum) -> Int {
325-
switch arg { // expected-error {{switch covers known cases, but 'UfiPkgEnum' may have additional unknown values}} {{none}} expected-note {{handle unknown values using "@unknown default"}}
324+
package func gi(_ arg: UfiPkgEnum) -> Int { // expected-error {{cannot find type 'UfiPkgEnum' in scope}}
325+
switch arg {
326326
case .one:
327327
return 1
328328
case .two(let val):

0 commit comments

Comments
 (0)