Remove unreachable else prongs
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user