DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Stray semicolon in class body causes ParseError #1223

Closed bbrk24 closed 1 month ago

bbrk24 commented 1 month ago

MWE:

class C
 ;

Given that class C {;} is valid JS, this should probably be accepted. Note that if the newline is removed, the above code does compile.