Add exception for classes with invalid syntax

This commit is contained in:
2025-11-21 20:18:05 -06:00
parent 48e409f6d0
commit 8c229dd19a

View File

@@ -1440,6 +1440,9 @@ namespace Tesses::CrossLang
} }
} }
else {
throw SyntaxException(tokens[i].lineInfo, "Need public, private, protected or static");
}
} }
} }
EnsureSymbol("}"); EnsureSymbol("}");