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
In the repl:
scala> class C[T] // defined class C scala> type B = C // defined alias type B = C scala> def b: B[String] = ??? def b: C[String]
Notice that b's type is displayed as C[String], as opposed to the declared B[String].
b
C[String]
B[String]
This seems to be a repl issue, because -Xprint:frontend in the compiler shows:
class Foo() extends Object() { class C[T >: Nothing <: Any]() extends Object() { T } type B = C def c: Foo.this.C[String] = ??? def b: Foo.this.B[String] = this.c } }
Which seems fine.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
In the repl:
Notice that
b
's type is displayed asC[String]
, as opposed to the declaredB[String]
.This seems to be a repl issue, because -Xprint:frontend in the compiler shows:
Which seems fine.
The text was updated successfully, but these errors were encountered: