aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Commit message (Collapse)AuthorAgeFilesLines
* Add more explanation.Martin Odersky2017-01-111-0/+3
|
* Fix #1891: Don't add redundant constraintMartin Odersky2017-01-101-2/+10
| | | | | | | | Before adding a constraint, make sure there is no way the two types are already in a subtype relation. Adding redundant constraints is problematic because we might introduce cycles. See i1891.scala for a test.
* Fix subtyping of hk types with wildcard argumentsMartin Odersky2016-12-201-2/+8
| | | | | Argument comparison of hk types did not take into account that the compared types could have themselves wildcard arguments.
* Merge pull request #1775 from dotty-staging/add-implicit-funtypesodersky2016-12-181-4/+4
|\ | | | | Add implicit function types
| * Changes for matching and subtyping implicit methodsMartin Odersky2016-12-171-4/+4
| | | | | | | | | | | | Implicitness is ignored for matching (otherwise apply in ImplicitFunction could not shadow apply in Function). And explicit trumps implicit in subtyping comparisons.
* | Make errors are not swept under the carpetMartin Odersky2016-12-171-2/+2
|/ | | | | | | | | Typer#ensureReported's comment outlines an example where errors could go unreported, resulting in error trees after typer without any reported error messages. This commit makes sure that at least one error is reported if a tree node has an error type. Fixes #1802.
* Drop explicit types for local implicit valsMartin Odersky2016-12-121-2/+2
| | | | | Drop explicit types for local implicit vals of type Context and Position. Exercises the functionality and shortens the code.
* handle ConstantType in TypeComparerReto Hablützel2016-12-041-0/+5
|
* Fix $1753 Better comparison of path typesMartin Odersky2016-11-301-2/+4
| | | | | | In this case, a path went through a type parameter which was aliased to a singleton type. Need to dealias to get to the special case handling two paths.
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-0/+1502