Navigation Menu

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

When a constructor has three or more parameter lists and derived class passes only two, compiler throws assertion #9610

Open
scabug opened this issue Jan 6, 2016 · 1 comment
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Jan 6, 2016

Following code contains an error, the error is reported correctly, but there is also an assert reported by the compiler:

class Computed() {
  def this(x: Double)(
    derivedFromX: Double = 0
  )() = {
    this()
  }
}

class Derived() extends Computed(0)()
@scabug
Copy link
Author

scabug commented Jan 6, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9610?orig=1
Reporter: Ondřej Španěl (OSpanel)
Affected Versions: 2.10.6, 2.11.7

@scabug scabug added this to the Backlog milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants