-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inheritance through a parameterized type alias fails #4557
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
Comments
So apparently the problem is only with applied types — contrast working: object Test {
class Parser[T, Elem]
type P = Parser[Unit, Char]
class CustomParser extends P
} with failing: object Test {
class Parser[T, Elem]
type P[T] = Parser[T, Char]
class CustomParser extends P[Unit]
} Also note how it complains on case tp1 =>
ctx.error(ex"$tp is not a class type, it's ${tp.dealias} hence $tp1", pos)
defn.ObjectType gives
|
allanrenucci
added a commit
that referenced
this issue
Jul 25, 2018
Fix #4557: Handle untpd.New with HKTypeLambda
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jul 26, 2018
We need to keep the original type - to allow IDE naviagtion - to make PrepareTransparent work correctly
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jul 26, 2018
We need to keep the original type - to allow IDE naviagtion - to make PrepareTransparent work correctly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Dotty wrongly complains that
Test.P is not a class type
The text was updated successfully, but these errors were encountered: