Skip to content
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

primary constructor arguments must be in scope in later argument lists #3842

Closed
scabug opened this issue Sep 14, 2010 · 1 comment
Closed
Assignees

Comments

@scabug
Copy link

scabug commented Sep 14, 2010

this should compile under -Ydependent-method-types:

class Foo(x: String)(y: x.type) { // error
  def this(a: Int, x: String)(y: x.type) {this(x)(x)} // ok 
}
@scabug
Copy link
Author

scabug commented Sep 14, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3842?orig=1
Reporter: @adriaanm
Duplicates #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

2 participants