Skip to content

Valid type projection fails #2949

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

Closed
Jasper-M opened this issue Aug 3, 2017 · 0 comments · Fixed by #2963
Closed

Valid type projection fails #2949

Jasper-M opened this issue Aug 3, 2017 · 0 comments · Fixed by #2963

Comments

@Jasper-M
Copy link
Contributor

Jasper-M commented Aug 3, 2017

class Foo(a: Foo#A) {
  type A = Int
}

fails with the error

found:    Foo
required: ?{ A: ? }

Scalac succesfully compiles this.

odersky added a commit to dotty-staging/dotty that referenced this issue Aug 8, 2017
Swap the order in which the constructor or a class is elaborated
relative to indexing the class contents. The change indexes first,
which fixes scala#2949.
smarter added a commit that referenced this issue Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant