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
), so the issue must be that in constraint solving the related error just gets called “an object type” – harder to track down; that string constant appears in a few places.
Right, I think that's what I was saying – in constraint solving, it fails on “is type variable T an object type” and gives an error with that constant string.
One idea is to, when we see “S is not object” (for any type S), we search the constraint set for field constraints and report those.
That or augment whatever obj-exists is with more information to report in constraints, even up to something that says, effectively “This one was created as a constraint for lessthan” and use that to augment the error on failure.
With TC on yields: The type checker rejected your program because it found a T but it expected a an object type.
I think we could do better here, and make the type that's synthesized have a little more explanation than “an object type”.
The text was updated successfully, but these errors were encountered: