kevinbarabash / compiler

2 stars 0 forks source link

Extend substitute() to handle more than just TVars #13

Closed kevinbarabash closed 2 years ago

kevinbarabash commented 2 years ago

The old way of widening types involved mutating type objects. This PR avoids that by giving each type object an id and allowing them to be substitute using the same mechanism as TVars.