scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

Autocomplete when lacking implicits #9792

Open scabug opened 8 years ago

scabug commented 8 years ago

When autocompleting, you get suggestions that will fail.

scala> (1,2).
_1   canEqual   equals     invert         productElement    productPrefix   toString   zipped   
_2   copy       hashCode   productArity   productIterator   swap            x                   

scala> (1,2).zipped
<console>:12: error: No implicit view available from Int => scala.collection.TraversableLike[El1,Repr1].
       (1,2).zipped
             ^
scabug commented 8 years ago

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

scabug commented 8 years ago

@SethTisue said: is this really a bug? you could explicitly pass the missing argument.

oh, ah, but tab completion has single and double tabs, where double-tab gives you everything. so maybe something like zipped ought to be relegated to double-tab .

scabug commented 8 years ago

@som-snytt said: It's an improvement!