musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Disallow functions and variables inside of a @class #166

Open iccir opened 4 years ago

iccir commented 4 years ago

Right now JavaScript functions and variables can be declared inside of a@class block. This prevents us from outputting ES6 classes (#165).

Moving forward, only comments, method declarations, @property declarations, and the @observe directory should be allowed inside of @class.