aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Mode.scala
Commit message (Collapse)AuthorAgeFilesLines
* Set the positions of inlined trees wehn read form TastyMartin Odersky2016-10-021-0/+3
| | | | | | | | | | | This required a major change in the way positions are handled, as the previous scheme did not allow to read the positions of arbitrary subtrees selectively. Fortunately, it's altogether a major simplification. Also, this fixed a bug in the previous scheme, where positions were generated before compactification, resulting in addresses being wrong.
* Disallow higher-kinded types that simulate general existential typesMartin Odersky2016-07-111-0/+5
| | | | | | | | | | | We cannot handle such types in general. So we now check that a hk application C[args] where some of the arguments are wildcards does not have as a supertype a hk application ([X] -> B)[args]
* Downwards comparisons for implicit search and overloading resolutionMartin Odersky2016-05-231-0/+3
| | | | | | | | | Compare selected contravariant arguments as if they were covariant. Which ones is explained in the doc comment for method `isAsSpecificValueType` in Applications.scala. This has the same motivation than what @paulp proposed around 2012. The solution is a bit different from the one proposed then because it only affects top-level parameters.
* Move Mode to coreMartin Odersky2016-04-011-0/+85
Mode is used from a lot of low-level code, does not just reflect Typer info. So it makes more sense top to place it in the core package.