Files
swift-mirror/test/ClangImporter/enum-dataflow.swift
Xi Ge b4cf37bf7d Sema: several improvements on missing switch cases diagnostics. (#8026)
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.
2017-03-10 19:32:37 -08:00

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
}