Remove unreachable else prongs

master
antlilja 2020-06-24 19:02:31 +02:00
parent fd50696359
commit e60be30824
3 changed files with 0 additions and 3 deletions

View File

@ -104,7 +104,6 @@ pub fn parse(
return error.InvalidCharacter;
},
},
else => unreachable,
}
}
unreachable;

View File

@ -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);

View File

@ -7,6 +7,5 @@ test "issue 1111 fixed" {
switch (v) {
Foo.Bar => return,
else => return,
}
}