blob: 7272907d9889c0425e984a6166720d8885d472fc [file] [log] [blame]
enum Enum { a, b, c }
void exhaustiveSwitch(Enum e) {}
void nonExhaustiveSwitch1(Enum e) {}
void nonExhaustiveSwitch2(Enum e) {}
void nonExhaustiveSwitch3(Enum e) {}
void nonExhaustiveSwitch4(Enum e) {}
void nonExhaustiveSwitchWithDefault(Enum e) {}
void exhaustiveNullableSwitch(Enum? e) {}
void nonExhaustiveNullableSwitch1(Enum? e) {}
void nonExhaustiveNullableSwitch2(Enum? e) {}
void unreachableCase1(Enum e) {}
void unreachableCase2(Enum e) {}
void unreachableCase3(Enum e) {}
void unreachableCase4(Enum? e) {}
enum GenericEnum<T> {
a<int>(),
b<String>(),
c<bool>(),
}
void exhaustiveGenericSwitch(GenericEnum<dynamic> e) {}
void exhaustiveGenericSwitchTyped(GenericEnum<int> e) {}