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 advice should use decoded names #9794

Closed
scabug opened this issue May 26, 2016 · 2 comments
Closed

Error advice should use decoded names #9794

scabug opened this issue May 26, 2016 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented May 26, 2016

The last completion is different; a member precedes the completion of interest.

Also the symbolic names in the verbose message should be decoded.

Welcome to Scala 2.12.0-M4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_60).
Type in expressions for evaluation. Or try :help.

scala> object X { def +++ (other: Any) = 42 }
defined object X

scala> X.+
+   +++

scala> X.+++
<console>:13: error: missing argument list for method +++ in object X
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `$plus$plus$plus _` or `$plus$plus$plus(_)` instead of `$plus$plus$plus`.
       X.+++
         ^

scala> object X { def +++ (other: Any) = 42 ; def f = () }
defined object X

scala> X.+
+   +++

scala> object X { def f = () ; def +++ (other: Any) = 42 }
defined object X

scala> X.+
   def +(other: String): String

Also possible I don't know how it's supposed to work.

Edit: Actually, it just remembers the last completion and sees the second completion request as double tab; the redefinition doesn't change the behavior.

@scabug
Copy link
Author

scabug commented May 26, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9794?orig=1
Reporter: @som-snytt
Affected Versions: 2.12.0-M4

@scabug
Copy link
Author

scabug commented May 27, 2016

@som-snytt said:
Sorry for the noise. scala/scala#5193

@scabug scabug closed this as completed May 30, 2016
@scabug scabug added the quickfix label Apr 7, 2017
@scabug scabug added this to the 2.12.0-M5 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants