We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9833cb4 commit 10f53cbCopy full SHA for 10f53cb
tests/language/patterns/int_to_double_error_test.dart
@@ -22,16 +22,6 @@ main() {
22
// ^
23
// [cfe] The matched value of type 'int' isn't assignable to the required type 'double'.
24
25
- // Non-exhaustive since double case doesn't cover uncoerced int type.
26
- switch (123) {
27
-//^^^^^^
28
-// [analyzer] COMPILE_TIME_ERROR.NON_EXHAUSTIVE_SWITCH
29
-// ^
30
-// [cfe] The type 'int' is not exhaustively matched by the switch cases.
31
- case double d:
32
- Expect.fail('Should not have matched.');
33
- }
34
-
35
// Non-exhaustive since double case doesn't cover uncoerced int type.
36
var result = switch (123) {
37
// ^^^^^^
0 commit comments