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

Auxiliary Constructors don't work with Explicitly Typed Self References #6745

Closed
scabug opened this issue Nov 30, 2012 · 5 comments
Closed

Comments

@scabug
Copy link

scabug commented Nov 30, 2012

Using auxiliary constructors in a class with explicitly typed self references doesn't compile. Seems like it expects a constructor without any parameters.

trait Foo
class Bar(val i: Int) {
  self: Foo =>
  def this() = this(0)
}
wat.scala:4: error: too many arguments for constructor Predef: ()object Predef
  def this() = this(0)
               ^
one error found
@scabug
Copy link
Author

scabug commented Nov 30, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6745?orig=1
Reporter: Andrée E (ovovadmi)
Affected Versions: 2.9.2, 2.10.0-RC2

@scabug
Copy link
Author

scabug commented Dec 2, 2012

@retronym said:
scala/scala#1689

@scabug
Copy link
Author

scabug commented Jan 8, 2013

@adriaanm said:
scala/scala#1786

@scabug
Copy link
Author

scabug commented Jan 22, 2013

@adriaanm said:
reopening for 2.10.1-RC1 backport

@scabug
Copy link
Author

scabug commented Jan 23, 2013

@retronym said:
Reclosing, I don't plan to backport this. I originally targetted 2.10.x with the fix, but found it too hard to add it to the un-refactored name resolution code.

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