We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Nothing inferred in polymorphic, method with empty parameter list but Int inferred when method is parameterless.
Int
object Test { def meth[R <: Int]() : R = ??? def main(args: Array[String]): Unit = { val person: Int = meth() } }
It should work the same either with or without a parameter list.
object Test { def meth[R <: Int]: R = ??? def main(args: Array[String]): Unit = { val person: Int = meth } }
The text was updated successfully, but these errors were encountered:
This is fixed by now, probably my one of the earlier type inference fixes.
Sorry, something went wrong.
biboudis
No branches or pull requests
Nothing inferred in polymorphic, method with empty parameter list but
Int
inferred when method is parameterless.minimized code
expectation
It should work the same either with or without a parameter list.
The text was updated successfully, but these errors were encountered: