musictheory / NilScript

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

Cannot annotate parameters of => function #160

Closed iccir closed 5 years ago

iccir commented 5 years ago

The following code produces a parse error:

let foo = (a: String, b: String) => {
    return 5;
};
iccir commented 5 years ago

Related to #159

iccir commented 5 years ago

Basic syntax is now supported by above commit (mostly via changes in the parser). Remaining work covered in #161