Remove unreachable else prongs
parent
fd50696359
commit
e60be30824
|
@ -104,7 +104,6 @@ pub fn parse(
|
|||
return error.InvalidCharacter;
|
||||
},
|
||||
},
|
||||
else => unreachable,
|
||||
}
|
||||
}
|
||||
unreachable;
|
||||
|
|
|
@ -2791,7 +2791,6 @@ fn transCharLiteral(
|
|||
"TODO: support character literal kind {}",
|
||||
.{kind},
|
||||
),
|
||||
else => unreachable,
|
||||
};
|
||||
if (suppress_as == .no_as) {
|
||||
return maybeSuppressResult(rp, scope, result_used, int_lit_node);
|
||||
|
|
|
@ -7,6 +7,5 @@ test "issue 1111 fixed" {
|
|||
|
||||
switch (v) {
|
||||
Foo.Bar => return,
|
||||
else => return,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue