Fixed class name check in class definition
parent
6a19e1c430
commit
c53397fa0d
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue