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.6.4
object Bug: def m0(f: PartialFunction[Char, Unit]): Unit = () def m1(): Unit = m0: x => "abc".filter(_ == x) match case _ => ()
See bug.log (or the more readable bug-nocolor.log) in attached zip file.
files.zip
The text was updated successfully, but these errors were encountered:
Compiles without crash if m0 delcared as
def m0(f: Char => Unit): Unit = ()
Also compiles without crash with this variation (m0 receives a function rather than a partial function, but there is no "match"):
def m0(f: PartialFunction[Char, Unit]): Unit = () def m1(): Unit = m0: x => "abc".filter(_ == x)
And this variation also works (m0 receives a partial function):
def m0(f: PartialFunction[Char, Unit]): Unit = () def m1(): Unit = m0: case x => "abc".filter(_ == x) match case _ => ()
Sorry, something went wrong.
Relatedly #23002 does not help.
No branches or pull requests
Compiler version
3.6.4
Minimized code
Output (click arrow to expand)
See bug.log (or the more readable bug-nocolor.log) in attached zip file.
files.zip
The text was updated successfully, but these errors were encountered: