diff --git a/src/compiler/parser.cpp b/src/compiler/parser.cpp index c7509d1..ec60f66 100644 --- a/src/compiler/parser.cpp +++ b/src/compiler/parser.cpp @@ -1440,6 +1440,9 @@ namespace Tesses::CrossLang } } + else { + throw SyntaxException(tokens[i].lineInfo, "Need public, private, protected or static"); + } } } EnsureSymbol("}");