aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Types.scala
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix commentMartin Odersky2017-03-081-2/+3
| | |
| * | Better fixMartin Odersky2017-03-081-6/+4
| | | | | | | | | | | | | | | `superType` should never return a `TypeBounds` in the first place. This commit makes sure it doesn't.
* | | Merge pull request #2045 from dotty-staging/fix-hlist-hmapodersky2017-03-091-1/+4
|\ \ \ | | | | | | | | Fix type inference for HLists and HMaps
| * | | Fix handling of dependent method typesMartin Odersky2017-03-011-6/+0
| | | | | | | | | | | | | | | | | | | | Need to use fresh PolyParams instead of WildcardTypes if constraint is committable.
| * | | Systematic treatment of result types of dependent methodsMartin Odersky2017-02-281-1/+10
| | |/ | |/| | | | | | | | | | | | | We approximate dependencies to parameters by Wildcards. This was already done in one place, is now done in other places as well, instead of doing nothing for dependent methods.
* | | Merge pull request #2049 from ennru/ennru_RecursiveNeedsTypeodersky2017-03-091-1/+2
|\ \ \ | |_|/ |/| | Change "recursive/cyclic definitions needs type" errors to Message
| * | More detail in error messagesEnno Runne2017-03-051-1/+2
| |/ | | | | | | | | | | Split error messages for recursive method and overloaded method needs type into two (but did not solve the analysis which to show). Make CyclicReference type error construct corresponding error message.
* | Drop named type parameters in classesMartin Odersky2017-03-041-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Drop the [type T] syntax, and what's associated to make it work. Motivation: It's an alternative way of doing things for which there seems to be little need. The implementation was provisional and bitrotted during the various iterations to introduce higher-kinded types. So in the end the complxity-cost for language and compiler was not worth the added benefit that [type T] parameters provide. Noe that we still accept _named arguments_ [A = T] in expressions; these are useful for specifying some parameters and letting others be inferred.
* | Add assert that refine infos are legal wrt refined namesMartin Odersky2017-02-271-0/+3
|/
* Merge pull request #1974 from dotty-staging/fix/ctx-captureodersky2017-02-211-3/+3
|\ | | | | Avoid accidental captures of Context
| * TempClassInfo#addSuspension: do not capture ContextGuillaume Martres2017-02-201-3/+3
| | | | | | | | | | | | This capture did not cause any problem since we always called TempClassInfo#finalize with the same Context than we captured in `addSuspension`, but it's better to be explicit about these things.
* | Avoid automatism for passing variances to PolyTypesMartin Odersky2017-02-141-4/+3
|/ | | | | We used to "fill-in" with zeroes if variances were missing. I now think that;'s too error-prone. Better define all variances explicitly.
* Add position based error reporting to dottydocFelix Mulder2017-02-011-1/+4
|
* Merge pull request #1826 from dotty-staging/fix-compile-stdlibGuillaume Martres2016-12-211-0/+8
|\ | | | | Make more parts of stdlib compile
| * More lenient handling of mixed parameterless and nullary methodsMartin Odersky2016-12-201-0/+8
| | | | | | | | | | When faced with a denotation that combines parameterless and nullary method definitions (toString is a common example), ignore any redundant () applications.
* | Address reviewer's commentsMartin Odersky2016-12-211-4/+3
| |
* | Fix #1795: Avoid infinite recursion between member and asSeenFromMartin Odersky2016-12-211-1/+6
|/
* Merge pull request #1823 from dotty-staging/fix-#1789Nicolas Stucki2016-12-181-2/+4
|\ | | | | Fix #1789: Fix signature of unit result type
| * Fix #1789: Fix signature of unit result typeMartin Odersky2016-12-181-2/+4
| | | | | | | | was scala.BoxedUnit, should be scala.Unit.
* | Merge pull request #1775 from dotty-staging/add-implicit-funtypesodersky2016-12-181-2/+4
|\ \ | | | | | | Add implicit function types
| * | New ShortcutImplicits phaseMartin Odersky2016-12-171-1/+3
| | | | | | | | | | | | | | | Optimizes implicit closures by avoiding closure creation where possible.
| * | Make implicit functions have implicit function typeMartin Odersky2016-12-171-1/+1
| |/
* | Comment FlexTypeMartin Odersky2016-12-171-0/+3
| |
* | Make errors are not swept under the carpetMartin Odersky2016-12-171-11/+16
|/ | | | | | | | | 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 "Dotty deviation" messages that are no longer applicable.Martin Odersky2016-12-121-1/+1
|
* Drop explicit types for local implicit valsMartin Odersky2016-12-121-1/+1
| | | | | Drop explicit types for local implicit vals of type Context and Position. Exercises the functionality and shortens the code.
* Fix #1757: Be more careful about positions of type variable bindersMartin Odersky2016-12-011-3/+3
| | | | | | | | | | | | | | We interpolate a type variable if the current tree contains the type variables binding tree. Previously, this was the application owning the variable. However, sometimes this tree is transformed so that the containment test fails, and type variables are instantiated too late (in the case of #1757 this was never). We fix this by - setting the binding tree to the type tree that first contains the type variable - making sure that tree is never copied literally anywhere else. It's a tricky dance, but I believe we got it right now.
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-221-0/+3865