-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type was inferred to be AnyVal
/Any
; this may indicate a programming error.
#12662
Comments
for
where
Probably Edit: or, of course, explicit type arg. |
I see that the ticket under which the behavior was tweaked explicitly mentions ScalaTest in this regard. |
Looked at another example in ActorModelSpec, which is also a classic.
is
but could be expressed
but I guess after you see it, you might prefer the explicit
It would be nice not to warn if a universal method is invoked on the inferred type somewhere. |
Reproduction steps
Scala version: 2.3.10
Problem
and
from : https://github.com/akka/akka/actions/runs/3212916837/jobs/5252192044
akka/akka#31648
indexOf
method returnsInt
, so should not get an error.Explain how the above behavior isn't what you expected.
compiles correctly.
The text was updated successfully, but these errors were encountered: