From 329a54c8cf17e1f525508a797692585f34ec9b90 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 1 Nov 2020 13:40:44 +0100 Subject: [PATCH] Explicitly fallthrough from inheritance parsing to body parsing, instead of implicitly. --- src/Parser/Parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index 06a562c..891d011 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -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: {