aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Enrich test caseMartin Odersky2016-12-171-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | Run a typical dotty compiler scenario with implicit contexts.
| * | | | Create implicit closures to math expected implicit functionsMartin Odersky2016-12-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | When the expected type is an implicit function, create an implicit closure to match it.
| * | | | Fix erasure of implicit functionsMartin Odersky2016-12-172-36/+32
| | | | | | | | | | | | | | | | | | | | and check at runtime that it works
| * | | | Always insert apply for expressions of implicit function typeMartin Odersky2016-12-171-0/+6
| | | | |
| * | | | Add syntax for implicit functionsMartin Odersky2016-12-171-0/+30
| | | | |
* | | | | Merge pull request #1817 from dotty-staging/fix-#1802odersky2016-12-181-0/+21
|\ \ \ \ \ | |_|_|/ / |/| | | | Fix #1802: Make sure errors are not swept under the carpet
| * | | | Make errors are not swept under the carpetMartin Odersky2016-12-171-0/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #1819 from dotty-staging/fix-#1803Nicolas Stucki2016-12-171-0/+7
|\ \ \ \ | | | | | | | | | | Fix #1803: Infer type parameters of anonymous class parents from expected type
| * | | | Infer type parameters of anonymous class parents from expected typeMartin Odersky2016-12-171-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | If a parent type of an anonymous class is an Ident or Select which refers to a parameterized type, use the expected type to infer its type parameters. Fixes #1803.
* | | | Merge pull request #1815 from dotty-staging/fix-#1797Nicolas Stucki2016-12-171-0/+1
|\ \ \ \ | | | | | | | | | | Fix #1797: Allow case class params with names _1, _2, ...
| * | | | Fix #1797: Allow case class params with names _1, _2, ...Martin Odersky2016-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was not possible before because it clashed with the automatically generated name of the accessor. We now allow it, by simply taking the parameter(accessor) itself as the case class accessor if it already has that name. But you still cannot write case class C(_2: Int, _1: String) nor should you be able to do this.
* | | | | Merge pull request #1767 from dotty-staging/fix-#1755odersky2016-12-171-0/+21
|\ \ \ \ \ | |_|/ / / |/| | | | Fix #1755: Make sure references in outer args are accessible
| * | | | Fix #1755: Make sure references in outer args are accessibleMartin Odersky2016-12-021-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed a fixup action in ExplicitOuter to avoid references to module's This from outside their scope. The problem is fixed, but I wish I understood better the root cause.
* | | | | Merge pull request #1813 from dotty-staging/fix-#1806Dmitry Petrashko2016-12-162-0/+12
|\ \ \ \ \ | | | | | | | | | | | | Fix #1806: Define outer accessors at the right phase
| * | | | | Fix #1806: Define outer accessors at the right phaseMartin Odersky2016-12-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some outer accessors were defined at phase explicitOuter, but were entered into the scope of their enclosing class only at phase explicitOuter + 1. This turned them to stale symbols when trying to access them at a later run, because at their initially valid phase they were not found as members of their owner.
| * | | | | Test caseMartin Odersky2016-12-151-0/+7
| | | | | |
* | | | | | Merge pull request #1801 from dotty-staging/fix-#1790Dmitry Petrashko2016-12-165-5/+48
|\| | | | | | |_|/ / / |/| | | | Fix #1790: Change by-name pattern matching.
| * | | | Implement new rules for name-based pattern matchingMartin Odersky2016-12-151-0/+28
| | | | | | | | | | | | | | | | | | | | This implements the rules laid down in #1805.
| * | | | Change by-name pattern matching.Martin Odersky2016-12-144-5/+20
| | |/ / | |/| | | | | | | | | | New implementation following the scheme outlined in #1790.
* | | | Merge pull request #1785 from dotty-staging/fix-#1784odersky2016-12-152-0/+12
|\ \ \ \ | | | | | | | | | | Fix #1784: allow to omit types for local implicit vals
| * | | | Fix neg test caseMartin Odersky2016-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | Needed an // error annotation
| * | | | Better diagnosis for cyclic references caused by implicit searchMartin Odersky2016-12-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now allow to drop the explicit type of a local implicit val it can happen that this causes a cyclic reference, namely when the typechecking of the right-hand side involves an implicit search. It's unpractical and fragile to avoid this. Instead we give now a nice error message explaining the problem and how to fix it in source code.
| * | | | Fix #1784: allow to omit types for local implicit valsMartin Odersky2016-12-121-0/+5
| | | | |
* | | | | Merge pull request #1682 from dotty-staging/vclassodersky2016-12-155-2/+5
|\ \ \ \ \ | | | | | | | | | | | | Fix checks related to value classes
| * | | | | fix test i705-inner-value-class2.scalaliu fengyun2016-11-241-1/+1
| | | | | |
| * | | | | fix failing neg testsliu fengyun2016-11-242-2/+2
| | | | | |
| * | | | | remove invalid field in value classliu fengyun2016-11-241-1/+0
| | | | | |
| * | | | | fix #1642: disallow value classe wrapping value classliu fengyun2016-11-243-1/+4
| | | | | |
| * | | | | fix #1670: move the check of value class to typerliu fengyun2016-11-241-0/+1
| | | | | |
* | | | | | Merge pull request #1780 from dotty-staging/fix-i1779odersky2016-12-153-0/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | fix #1779: support $_ and $_id in interpolated string
| * | | | | | only allow $_ in patternsliu fengyun2016-12-121-0/+13
| | | | | | |
| * | | | | | fix #1779: support $_ and $_id in interpolated stringliu fengyun2016-12-082-0/+14
| | | | | | |
* | | | | | | More tests and other odds and endMartin Odersky2016-12-147-0/+122
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add tests that work to pos/neg, tests that don't work yet to pending/pos/neg. - Also, change .gitignore to allow for a local directory. - Also add a draft page to the docs.
* | | | | | Merge pull request #1761 from dotty-staging/topic/product-showFelix Mulder2016-12-141-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | [REPL] Add show capability to common types
| * | | | | | Fix repl testsFelix Mulder2016-12-011-1/+1
| | | | | | |
* | | | | | | Fix #1786: support use package object in fun callliu fengyun2016-12-132-0/+35
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge pull request #1781 from dotty-staging/fix-#1776Dmitry Petrashko2016-12-121-0/+3
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Fix #1776: Avoid interaction between parameter forwarding and elimByName
| * | | | | Add test caseMartin Odersky2016-12-121-0/+3
| | | | | |
* | | | | | Merge pull request #1764 from dotty-staging/fix-#1757odersky2016-12-101-0/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix #1757: Be more careful about positions of type variable binders
| * | | | | | Add test caseMartin Odersky2016-12-021-0/+6
| | |_|_|_|/ | |/| | | |
* | | | | | Merge pull request #1766 from dotty-staging/fix-#1756odersky2016-12-101-0/+20
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Fix #1756: Use lexically enclosing class as start of outer path.
| * | | | | Add original test to test caseMartin Odersky2016-12-021-3/+2
| | | | | |
| * | | | | Fix-1756: Use lexically enclosing class as start of outer path.Martin Odersky2016-12-021-0/+21
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | We confused the enclosing class (which skips the current class in super call contexts) and the lexically enclosing class in three locations that all had to do with the start of an outer path.
* | | | | Merge pull request #1768 from dotty-staging/fix-#1765odersky2016-12-101-0/+21
|\ \ \ \ \ | | | | | | | | | | | | Fix #1765: Context bounds and denotation handling
| * | | | | Fix insertAfterMartin Odersky2016-12-021-0/+21
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once the context-bounds desugaring of i1765.scala was fixed, another problem came up: We hit an invalid denotation due to some interaction between mixin and memoize. It turned out that `insertInsteadOf` did not do what its doc comment claimed: it did not store a forwarding pointer `nextInRun` in the overwritten denotation. Once that was fixed we also needed to fix a follow-on erorr that now we could have chains of invalid denotations linked by `nextInRun`.
* | | | | Merge pull request #1769 from dotty-staging/fix-#1751odersky2016-12-101-0/+17
|\ \ \ \ \ | |_|_|/ / |/| | | | Fix #1751: Make dominator work after erasure
| * | | | Fix #1751: Make dominator work after erasureMartin Odersky2016-12-021-0/+17
| |/ / / | | | | | | | | | | | | | | | | | | | | i1751.scala shows a case where we need to compute the approximation of an or-type during erasure. This can lead to an empty set of common classes because Any does not exist anymore after erasure.
* | | | Merge pull request #1778 from dotty-staging/fix-i1773liu fengyun2016-12-082-0/+16
|\ \ \ \ | | | | | | | | | | Fix #1773: handle patterns in interpolated string
| * | | | fix #1773: handle patterns in interpolated stringliu fengyun2016-12-082-0/+16
| | | | |
* | | | | handle ConstantType in TypeComparerReto Hablützel2016-12-041-0/+4
|/ / / /