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
Described here http://stackoverflow.com/questions/27669605/why-cant-the-compiler-infer-type-parameter-for-package-object-while-it-works-f
// Foo.scala trait Echo [T] { def echo(t: T): Unit } trait IntEcho extends Echo[Int] { def echo(t: Int) = println(t) } object echo extends IntEcho package object echo1 extends IntEcho object App extends App { echo.echo(1) echo1.echo(1) }
And while I try to compile it( the attachment), it would fail
/tmp $ scalac Foo.scala Foo.scala:14: error: type mismatch; found : Int(1) required: T echo1.echo(1) ^ one error found
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-9090?orig=1 Reporter: jilen Affected Versions: 2.11.4 Attachments:
Sorry, something went wrong.
@retronym said: Merging with #9074 as they fix for the two issues is the same.
retronym
No branches or pull requests
Described here
http://stackoverflow.com/questions/27669605/why-cant-the-compiler-infer-type-parameter-for-package-object-while-it-works-f
And while I try to compile it( the attachment), it would fail
The text was updated successfully, but these errors were encountered: