Closed rvcas closed 5 months ago
Perhaps the error message can briefly explain what an opaque type is, and why this isn't allowed? (for example, I don't know the answer to either of those questions heh)
:+1: on the error message <3
Seems this causes unexpected effects. How should I deal with datums consisting Rational or Dict?
@t0anh These aren't unexpected effects, these are precisely the expected effects!
For Dict
, you should pass an ordered list of key/values as an ordered list, and then use dict.from_ascending_list
to turn it into a list.
For Rational
, you should pass the numerator and denominator and then use rational.new
to convert it back into a rational.
opaque: bool
toType::App
(can be used to simplify some things in code gen too)Type
calledis_opaque
that leverages the new fieldinfer_assignment
and return the new error