blob: adcfca2b8919657426fa5d74c16560303d9dd089 [file] [log] [blame]
// RUN: %target-swift-frontend -emit-sil %s -verify
func non_fully_covered_switch(x: Int) -> Int {
var x = x
switch x {
case 0:
x += 1
case 3:
x -= 1
} // expected-error{{switch must be exhaustive}}
return x;
}