-
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
Scalac does not check type equality for existential types #9899
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9899?orig=1 |
@SethTisue said: You can pattern match instead; this compiles: pair match { case (f, x) => f(x) } You might also be interested in http://stackoverflow.com/a/39061519/86485 which is similar. |
@SethTisue said: |
@SethTisue said: def applyPair[A](p: (A => String, A)) = p._1(p._2)
applyPair(pair) so pattern-matching isn't the only workaround. |
The text was updated successfully, but these errors were encountered: