Explicitly fallthrough from inheritance parsing to body parsing, instead of implicitly.
This commit is contained in:
parent
00253a51b5
commit
329a54c8cf
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue