summaryrefslogtreecommitdiff
path: root/test/files/presentation/completion-implicit-chained.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-8129 Make Object#== override Any#==Jason Zaugg2014-02-101-3/+1
| | | | | | | | | | | | | | | | | | | | And the same for != If we tried to declare these signatures in non-fictional classes, we would be chastised about collapsing into the "same signature after erasure". This will have an influence of typing, as the typechecking of arguments is sensitive to overloading: if multiple variants are feasible, the argument will be typechecked with a wildcard expected type. So people inspecting the types of the arguments to `==` before this change might have seen an interesting type for `if (true) x else y`, but now the `If` will have type `Any`, as we don't need to calculate the LUB. I've left a TODO to note that we should really make `Any#{==, !=}` non-final and include a final override in `AnyVal`. But I don't think that is particularly urgent.
* Test infrastructure for scope completionJason Zaugg2013-11-151-1/+1
| | | | | Adds a new marker /*_*/ to trigger scope completion test. Original type completion test oracles update for the tweaked output
* Merge commit '6045a05b83' into merge-2.10Adriaan Moors2013-11-131-23/+23
| | | | | Conflicts: src/interactive/scala/tools/nsc/interactive/Global.scala
* Fix completion after application with implicit argumentsJason Zaugg2013-11-061-0/+29
`List(1, 2, 3).map(f).<ctrl-space>` now works; before the tree had the type `(bf: CanBuildFrom[...]):...` and did not contribute completions from the result type. This commit checks if the tree has an implicit method type, and typechecks it as a qualifier. That is enough to get to `adaptToImplicitMethod` in the type checker, infer the implicit arguments, and compute the final result type accordingly.