Closed BenjaminCosman closed 9 years ago
@bmcfluff This should NOT work, right? Just the version with an Immutable 'size' field.
This one could go either way; I think we decided that there's no reason why you should want to do this without labeling it Immutable so it's ok if we return UNSAFE. The reason this is an Issue is because right now it returns CRASH (FixConstraint.BadConstraint(_)).
Addressed by #103
See:
https://github.com/UCSD-PL/RefScript/blob/master/tests/todo/immutable-field.ts