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
Currently the type checker does not yet support subtyping constraints in types, but it might soon (as part of implementing support for record concatenation, which seems to require this)
The subtyping and ad-hoc type of
+
make it a bit flaky.This works fine:
But this one doesn't
All I've done here is beta reduction, which one would usually expect to preserve type inference.
Ideally, I think this should also work:
I can see why is doesn't, but Ignoring that
+
also does lists and text.Could it instead be something like:
The text was updated successfully, but these errors were encountered: