hkust-taco / mlscript

The MLscript programming language. Functional and object-oriented; structurally typed and sound; with powerful type inference. Soon to have full interop with TypeScript!
https://hkust-taco.github.io/mlscript
MIT License
171 stars 26 forks source link

Fix/virtual type arg params #205

Closed LPTK closed 9 months ago

LPTK commented 9 months ago

This change exposed some more limitations when typing cyclic definitions. In the future we should create a proper framework for correctly dealing with typing dependencies, allowing to type more things, to still infer refined types in the absence of cycles, and to give more specific error messages.