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
The following demonstrates the problem:
def foo(pf: PartialFunction[Any, Unit]) = () def bar(default: String) = foo { case _ => val x: String = default }
Inside the PF literal, the symbol default is shadowed by something that must be synthetically generated:
default
<console>:9: error: type mismatch; found : A1 => B1 required: String case _ => val x: String = default ^
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8329?orig=1 Reporter: @Sciss Affected Versions: 2.10.3, 2.11.0-M8
Sorry, something went wrong.
@retronym said: Good catch, Sciss!
I think this fixes it:
https://github.com/retronym/scala/compare/ticket;8329?expand=1
I don't think this will make 2.11.0 as we're really close to RC1. But we can target 2.11.1, and probably backport to 2.10.5
@retronym said: #8329
retronym
No branches or pull requests
The following demonstrates the problem:
Inside the PF literal, the symbol
default
is shadowed by something that must be synthetically generated:The text was updated successfully, but these errors were encountered: