escalier-lang / escalier

A compile-to-JavaScript language with tight TypeScript integration.
https://escalier-lang.github.io/escalier/
MIT License
21 stars 1 forks source link

Use type variables for `_` #679

Open kevinbarabash opened 1 year ago

kevinbarabash commented 1 year ago

For instance it would be nice if:

let numbers: Array<_> = [1, 2, 3]

resulted in numbers being inferred as having type Array<1 | 2 | 3>.