mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
1. Make sure the actions taken by fixits are reflected in diagnostics messages. 2. Issue missing cases diagnostics at the start of the switch statement instead of its end. 3. Use <#code#> instead of <#Code#> in the stub.
19 lines
449 B
Swift
19 lines
449 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
import user_objc
|
|
|
|
let aliasOriginal = NSAliasesEnum.byName
|
|
|
|
switch aliasOriginal { // expected-error {{switch must be exhaustive, consider adding missing cases}}
|
|
case .original:
|
|
break
|
|
}
|
|
|
|
switch aliasOriginal { // expected-error {{switch must be exhaustive, consider adding missing cases}}
|
|
case .bySameValue:
|
|
break
|
|
}
|