This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
parameter type inference for anonymous functions in assignments #7058
Comments
gavinking
changed the title
Consider inferring the parameter type of lambdas with explicit return types.
parameter type inference for anonymous functions in assignments
Apr 17, 2018
This was referenced Apr 17, 2018
Given that I'm doing work in this area now, as a consequence of #6615, time is probably ripe to make a start on this issue. |
gavinking
added a commit
that referenced
this issue
Apr 18, 2018
This is now basically done, on the |
I just tried it, and it doesn't appear to be working:
|
@fwgreen I just tried it with this code: shared interface Request {}
shared interface Response {}
shared alias Route => Object(Request, Response);
shared Route bar = (req, res) => "Hello";
shared Route baz = (req, res) => "World"; and it worked. Are you sure you're on the right branch? |
@gavinking I cloned it again and this time it works! Thanks! |
gavinking
added a commit
that referenced
this issue
Apr 18, 2018
I've merged this work to master. Still need to define it in the spec. |
This was referenced Apr 23, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here is one possible use case
The text was updated successfully, but these errors were encountered: