musictheory / NilScript

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

Cannot annotate return value of => function #159

Closed iccir closed 5 years ago

iccir commented 5 years ago

The following code produces a parse error:

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

Related to #160

iccir commented 5 years ago

Covering this in #161 umbrella.