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
Fix#10082: show friendly error message related to type inference
The type `site` might be an uninitialized type variable,
but is initialized when we display the error message.
It results in confusing error message as in #10082.
We take a string representation of the type `site`
when the error object is created and use that in the
message message.
Now the error message is more sensible:
-- [E008] Not Found Error: tests/neg/i10082.scala:7:30 -------------------------
7 |def Test = List(1).map(fun(it + 1))
| ^^^^
| value + is not a member of T
|
| where: T is a type variable with constraint >: Int
| , but could be made available as an extension method.
0 commit comments