Logo
Explore Help
Sign In
fluencelabs/assemblyscript
1
0
Fork 0
You've already forked assemblyscript
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-08 21:32:15 +00:00
Code Issues Projects Releases Wiki Activity
assemblyscript/tests/parser/arrow-functions.ts

12 lines
152 B
TypeScript
Raw Normal View History

Fix some array function parsing and serialization issues Quite similar to #256 and also uses its test, but also fixes the serializer and doesn't try to parse an untyped 'x => x'.
2018-10-04 09:53:47 +02:00
// array function
(x): i32 => x;
(x: i32) => x;
(x?) => x;
(x?, y?) => x;
(x?: i32) => x;
Infer function expressions in matching contexts (#514) * legalizes omitting types on function expressions within function type contexts * legalizes omitting any number of arguments
2019-02-27 21:45:36 +01:00
x => x;
Fix some array function parsing and serialization issues Quite similar to #256 and also uses its test, but also fixes the serializer and doesn't try to parse an untyped 'x => x'.
2018-10-04 09:53:47 +02:00
// not an array function
(b ? x : y);
(b ? f : g)();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 61ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API