You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm guessing this is because, at one point, we assumed that all exceptions were of type RuntimeException. This has never been enforced, though, and in practice we just throw arbitrary values. I just need to adjust to code to do this, assuming we don't want to start enforcing this.
I think the value that is thrown should be of type value. In the cases, one can then match on specific values, including values of type RuntimeException.
As mentioned above, I have a temporary fix in the compiler so there is no hurry for this one.
Given
the type checker decides that
s
has typeadt("RuntimeException",[])
but this should bevalue
.The case of a typed variable works well, e.g.,
catch str s
will result ins
having typestr
.[Note: this case is now temporarily solved in the compiler]
The text was updated successfully, but these errors were encountered: