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

"Too many arguments" compiler error should provide more info #8667

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

"Too many arguments" compiler error should provide more info #8667

scabug opened this issue Jun 16, 2014 · 2 comments

Comments

@scabug
Copy link

scabug commented Jun 16, 2014

Consider the following code:

  class C(val a: Int)
  new C(a = 10, b = 15) // too many arguments for constructor C: (a: Int)

Here, it's easy to see that argument b is superfluous. However, if constructor has considerably more arguments (e.g. 10+), finding excessive arguments becomes a non-trivial task. Error message should provide the list of excessive arguments, as not enough arguments compiler error does.

@scabug
Copy link
Author

scabug commented Jun 16, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8667?orig=1
Reporter: Alexander Abdugafarov (frozenspider)

@scabug
Copy link
Author

scabug commented May 5, 2016

@som-snytt said:
scala/scala#5147

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