musictheory / NilScript

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

Complex type in @type causes syntax error #125

Closed iccir closed 6 years ago

iccir commented 7 years ago

The following usage of @type blows up with "Unexpected token :"

@type Foo = {
    a: String,
    b: String,
    c: Object<Object<String>>,
    d: String,
    e: Object<String>
};
iccir commented 7 years ago

Workaround for now: move c to the end of the @type.