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

Remove duplicates from union types #706

Open kevinbarabash opened 1 year ago

kevinbarabash commented 1 year ago

There should never be a type like A | B | A after inference and elaboration. Types like these should all be sampled to A | B so that the elements of the union are unique and have a stable order.