mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
Infer function expressions in matching contexts (#514)
* legalizes omitting types on function expressions within function type contexts * legalizes omitting any number of arguments
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
(x?) => x;
|
||||
(x?, y?) => x;
|
||||
(x?: i32) => x;
|
||||
x => x;
|
||||
|
||||
// not an array function
|
||||
(b ? x : y);
|
||||
|
Reference in New Issue
Block a user