Fixed class name check in class definition

parser_exception_before
Tristan B. V. Kildaire 2021-03-28 22:29:33 +02:00
parent 6a19e1c430
commit c53397fa0d
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ public final class Parser
/* Get the class's name (CAN NOT be dotted) */
expect(SymbolType.IDENT_TYPE, getCurrentToken());
expect(to!(string)(isIdentifier_Dot(getCurrentToken())));
if(isIdentifier_Dot(getCurrentToken()))
if(!isIdentifier_NoDot(getCurrentToken()))
{
expect("Class name in declaration cannot be path");
}