titzer / virgil

A fast and lightweight native programming language
1.13k stars 40 forks source link

[unbox] [WIP] Fix extraction of integer types from variants #228

Closed btwj closed 3 months ago

btwj commented 3 months ago

There was an issue with ordinary subsumption for extracting integer fields, when they differed from the signedness of the representative scalar in the variant norm (due to the addition of type checks).

TODO: Add more tests