aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add syntax for implicit functionsMartin Odersky2016-12-171-0/+30
|
* 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
|/ / / /
* | | | Merge pull request #1658 from dotty-staging/fix-#1639odersky2016-12-031-0/+10
|\ \ \ \ | | | | | | | | | | Fix #1639: Changes around implicits and apply methods
| * | | | Avoid inserting multiple .apply's.Martin Odersky2016-11-241-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can lead to stackoverflow, as i1639.scala shows. Fixes #1639.
* | | | | Merge pull request #1758 from dotty-staging/change-functionsodersky2016-12-032-1/+73
|\ \ \ \ \ | | | | | | | | | | | | Drop function 22 limit
| * | | | | Drop function 22 limit.Martin Odersky2016-11-302-1/+73
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Functions with more than 22 parameters are now automatically converted to functions taking a single object array parameter. This has been achieved by tweaking erasure. Other things I have tried that did ot work out well: - Use a single function type in typer. The problem with this one which could not be circumvented was that existing higher-kinded code with e.g. Funcor assumes that Functon1 is a binary type constructor. - Have a late phase that converts to FunctonXXL instead of doing it in erasure. The problem with that one was that potentially every type could be affected, which was ill-suited to the architecture of a miniphase.
* | | | | Merge pull request #1685 from dotty-staging/fix-1665Dmitry Petrashko2016-12-031-0/+7
|\ \ \ \ \ | |_|_|/ / |/| | | | Fix #1665: Check that != has an operand on the left.
| * | | | Fix #1665: Check that != has an operand on the left.Nicolas Stucki2016-12-011-0/+7
| | |_|/ | |/| |
* | | | Additional test caseMartin Odersky2016-12-011-0/+2
| | | | | | | | | | | | | | | | This PR also fixes #1649
* | | | Fix #1647 Evaluate annotation arguments in proper contextMartin Odersky2016-12-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to evaluate annotation arguments in an expression context, since classes defined in asuch arguments should not be entered into enclosing class. Fixes #1647
* | | | New phase for entering annotationsMartin Odersky2016-12-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | If we want to do annotation macros right, we need to add annotations before completing definitions. This commit achieves that by adding a new "phase" between index and typecheck.
* | | | Fix $1753 Better comparison of path typesMartin Odersky2016-11-301-0/+22
| |/ / |/| | | | | | | | | | | | | | 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.
* | | make test runnableliu fengyun2016-11-282-3/+5
| | |
* | | fix #1748: desugaring with StringContext in PatDefliu fengyun2016-11-271-0/+14
| | |