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

Error message for a recursive constructor could be more specific #9045

Closed
scabug opened this issue Dec 16, 2014 · 2 comments
Closed

Error message for a recursive constructor could be more specific #9045

scabug opened this issue Dec 16, 2014 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Dec 16, 2014

In the code

case class AffineImageShape(axes: Seq[Int]) {
  def this(axes: Array[Int]) = this(axes)
}

The error is

Error:(4, 34) called constructor's definition must precede calling constructor's definition

This is true but it would be more helpful to say

Error: constructor calls itself
@scabug
Copy link
Author

scabug commented Dec 16, 2014

Imported From: https://issues.scala-lang.org/browse/SI-9045?orig=1
Reporter: Owen Healy (ellbur)
Affected Versions: 2.11.4

@scabug
Copy link
Author

scabug commented May 4, 2016

@som-snytt said:
Webster's has a picture of this issue next to the entry for "low-hanging fruit".

scala/scala#5146

The fruit in that picture is a kumquat.

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