Exhaustive switch on enums. This addresses #838

This commit is contained in:
Christoffer Lerno
2023-07-09 01:00:39 +02:00
committed by Christoffer Lerno
parent 8b605d9183
commit 9543fbbf1c
9 changed files with 45 additions and 8 deletions

View File

@@ -69,7 +69,6 @@ fn Object*! JsonParser.parse_from_token(&self, JsonTokenType token)
case NULL: return object::new_null();
case EOF: return JsonParsingError.EOF?;
}
unreachable();
}
fn Object*! JsonParser.parse_any(&self)
{