escalier-lang / escalier-next

Improved type safety with tight TypeScript interop
https://escalier-lang.github.io/escalier-next/
MIT License
14 stars 0 forks source link

instantiate type variables when assigned to a top-level binding #248

Closed kevinbarabash closed 5 months ago

kevinbarabash commented 5 months ago

When generalizeType encounters a type variable outside of a function type it will generalize that type variable in the following way:

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.89%. Comparing base (899aa7c) to head (994c810).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #248 +/- ## ========================================== + Coverage 83.86% 83.89% +0.03% ========================================== Files 24 24 Lines 10372 10374 +2 Branches 1473 1472 -1 ========================================== + Hits 8698 8703 +5 + Misses 1674 1671 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.