Skip to content

Class parameter can't have path-dependent type based on parameter from previous section #9491

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
scabug opened this issue Sep 26, 2015 · 2 comments

Comments

@scabug
Copy link

scabug commented Sep 26, 2015

Given a nested type {code}trait Compiler { trait Config }{code} I expect this to work similar to a method:

class F(val c: Compiler)(val conf: c.Config)

but this produces an error (with a rather surprising message):

<console>:8: error: not found: value c
       class F(val c: Compiler)(val conf: c.Config)
                                          ^
@scabug
Copy link
Author

scabug commented Sep 26, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9491?orig=1
Reporter: @alexeyr
Affected Versions: 2.11.7

@scabug
Copy link
Author

scabug commented Feb 10, 2017

@alexeyr said:
Duplicate of #5712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant