ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

Named-arg invocations with MPL's get called immediately #527

Closed chochos closed 9 years ago

chochos commented 9 years ago
void f(Integer a, Integer b)=>print("a=``a`` b=``b``");
  value u1=unflatten(f);
  value u2=unflatten{f;};

this breaks because for u2 because u2 is immediately called with a bogus argument list. This only happens with named-arg calls.

chochos commented 9 years ago

The application of named arguments was considering all parameter lists, instead of just the first one.