Explicitly fallthrough from inheritance parsing to body parsing, instead of implicitly.

This commit is contained in:
Deukhoofd 2020-11-01 13:40:44 +01:00
parent 00253a51b5
commit 329a54c8cf
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ namespace MalachScript::Parser {
if (current->GetKind() != LexTokenKind::OpenCurlyParenthesisSymbol) {
LogError(Diagnostics::DiagnosticType::UnexpectedToken, current->GetSpan());
}
[[fallthrough]];
// Intentionally don't break so we continue into the inner body statement.
}
case LexTokenKind::OpenCurlyParenthesisSymbol: {