-
-
Notifications
You must be signed in to change notification settings - Fork 672
Can't call conditional expression #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, for this specific case when signatures are identical it pretty simple, we can just syntactic sugaring to function f(x: i32): i32 { return x; }
function g(x: i32, y: i32): i32 { return x + y; }
function test(b: boolean): i32 {
return (b ? f : g)(1, 2);
} This valid in Typescript btw. |
You can already do this in master using |
Yeah, it can't resolve to a concrete |
Resolved in #833 |
Currently fails with:
The text was updated successfully, but these errors were encountered: