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
From https://gitter.im/scala/scala?at=55dcfde86ebe0cd61264329a:
trait II { def apply(x: Int): Int } object Test { def ii(x: Int): Int = x def test = { val ii1: II = x => ii(x) // works val ii2: II = ii // works (adapting `ii` to `II`) val ii3: II = ii _ // fails // typedTyped({ii : (() => <empty>)}) // typedEta(ii, pt = II) // adapt(ii, pt = (? => ?)) // instantiatedToMethodType(ii, pt = (? => ?)) // val ii3: II = ii _ // error: // found : Int => Int // required: II } }
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-9449?orig=1 Reporter: Guillaume Martres (Smarter) Affected Versions: 2.11.7
Sorry, something went wrong.
@lrytz said: scala/scala#4945
@szeiger said: Fixed by scala/scala#4971 as far as I can tell.
adriaanm
No branches or pull requests
From https://gitter.im/scala/scala?at=55dcfde86ebe0cd61264329a:
The text was updated successfully, but these errors were encountered: