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
class LiteralNode(val value: Any) object LiteralNode { def unapply(n: LiteralNode) = Some(n.value) } object Test extends App { ((new LiteralNode(false)): Any) match { case LiteralNode(true) => println("uh-oh") case LiteralNode(false) => println("ok") } }
causes a MatchError because the extractor call is factored out incorrectly
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-6077?orig=1 Reporter: @adriaanm
Sorry, something went wrong.
@adriaanm said: caused by #4691
@adriaanm said: scala/scala#904
adriaanm
No branches or pull requests
causes a MatchError because the extractor call is factored out incorrectly
The text was updated successfully, but these errors were encountered: