We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.5.0, 3.3.3
https://scastie.scala-lang.org/road21/GozkhzC7QXaGpkbM7mNYUg/3
for { (x: Any) <- (List[Boolean]()) } yield x
Compile error:
[error] cannot test if value of type Boolean is a reference of class Object [error] (x: Any) <- (List[Boolean]()) [error] ^^^^^^
No compiler error
Same code works fine in Scala 2.13
The text was updated successfully, but these errors were encountered:
@sjrd should this actually compile, or is this not supported for a reason? (in which case it'd just need a better error message)
Sorry, something went wrong.
Looks like a bug to me. It should compile.
dwijnand
Successfully merging a pull request may close this issue.
Compiler version
3.5.0, 3.3.3
Minimized code
https://scastie.scala-lang.org/road21/GozkhzC7QXaGpkbM7mNYUg/3
Output
Compile error:
Expectation
No compiler error
Same code works fine in Scala 2.13
The text was updated successfully, but these errors were encountered: