blob: 7ac2991d603064472d725cad3aa9506f7d015e98 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -emit-sil -diagnostics-editor-mode
enum E {
case e1
case e2
}
func foo1(e : E) {
switch e { // expected-error{{do you want to add missing cases?}}{{3-3=case .e2: <#code#>\n}}
case .e1: return
}
}
func foo2(i : Int) {
switch i { // expected-error{{do you want to add a default clause?}}{{3-3=default: <#code#>\n}}
case 1: return
}
}