aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
Commit message (Collapse)AuthorAgeFilesLines
* Implement structural type member accessMartin Odersky2017-01-051-0/+44
| | | | New scheme for implementing structural type member access.
* Merge pull request #1873 from dotty-staging/fix-#1865odersky2017-01-051-0/+24
|\ | | | | Fix #1865: Compute outer path at right phase
| * Address reviewer commentsMartin Odersky2017-01-041-0/+24
| |
* | Fix #1868 - Fix logic bug in matchMartin Odersky2017-01-021-0/+7
|/
* Merge pull request #1826 from dotty-staging/fix-compile-stdlibGuillaume Martres2016-12-211-0/+6
|\ | | | | Make more parts of stdlib compile
| * Fix subtyping of hk types with wildcard argumentsMartin Odersky2016-12-201-0/+6
| | | | | | | | | | Argument comparison of hk types did not take into account that the compared types could have themselves wildcard arguments.
* | Fix #1795: Avoid infinite recursion between member and asSeenFromMartin Odersky2016-12-211-0/+13
|/
* Merge pull request #1832 from dotty-staging/fix-1810odersky2016-12-202-0/+23
|\ | | | | Fix #1812, Symbols.mapSymbols shouldn't replace denotations
| * Add tests verifying that i1812 stays fixed.Dmitry Petrashko2016-12-192-0/+23
| |
* | Fix #1793: allow multiversal comparisons between Null and XFelix Mulder2016-12-191-0/+7
| |
* | 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 #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-151-0/+5
|\ \ \ \ | | | | | | | | | | Fix #1784: allow to omit types for local implicit vals
| * | | | Fix #1784: allow to omit types for local implicit valsMartin Odersky2016-12-121-0/+5
| | | | |
* | | | | Merge pull request #1682 from dotty-staging/vclassodersky2016-12-151-0/+2
|\ \ \ \ \ | | | | | | | | | | | | Fix checks related to value classes
| * | | | | fix #1642: disallow value classe wrapping value classliu fengyun2016-11-241-0/+2
| | | | | |
* | | | | | More tests and other odds and endMartin Odersky2016-12-143-0/+74
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | | | Fix #1786: support use package object in fun callliu fengyun2016-12-131-0/+18
| |_|_|/ |/| | |
* | | | 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 #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
| | |/ | |/|
* | | 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.
* | Enable GADT matching for pattern valuesMartin Odersky2016-11-241-0/+11
|/ | | | | So far, only typed patterns an dunapply had GADT matching. i1737.scala shows that we need to do the same thing for objects.
* checkNoPrivateLeaks: handle defs in local classesGuillaume Martres2016-11-221-0/+10
| | | | | | The access boundary of a def in a local class is the owner of that class, previously it was set to the access boundary of the owner of the class instead.
* checkNoPrivateLeaks: handle references to companion membersGuillaume Martres2016-11-221-0/+17
| | | | | | | | | | | Previously Outer2#Inner#foo failed to compile with: ``` non-private method foo refers to private value x in its type signature ``` This should compile because the boundary of `foo` is `class Outer2` and the boundary of `x` is `object Outer2`. This commit fixes this by also considering the linked boundary in `checkNoPrivateLeaks`.
* Fix partest compilation of java-interop tests by moving themGuillaume Martres2016-11-2275-356/+0
| | | | | | | | | | Previously, the tests where all in tests/pos/java-interop which means that partest would try to run them as one single test, this failed because some of these tests define classes with the same name. We could fix this by putting them all in separate packages but for now it's simple to move them to tests/pos-java-interop (they will still be run individually as they should thanks to the `java_all` test defined in tests.scala)
* Fix #1664: Refine isOuterRef conditionMartin Odersky2016-11-101-0/+12
| | | | | | | | We forgot the case where a hoistable method can still refer to free variables that have to be passed using outer pointers. Fixes #1664.
* Merge pull request #1657 from dotty-staging/fix-#1638odersky2016-11-051-0/+3
|\ | | | | Fix #1638: Don't import when typing a package clause
| * Fix #1638: Don't import when typing a package clauseMartin Odersky2016-11-031-0/+3
| | | | | | | | | | | | | | When typing the first identifier of a package clause, disable imports, as package clauses are never imported. Fixes #1638.
* | Fix #1637: Future defs are always OKMartin Odersky2016-10-311-0/+8
|/ | | | | | | Drop special mode that handles future defs without which we get DenotationNotDefinedHere errors. In more than a year, this has only turned up false negatives. So I think it's better to drop the check, and the contortions needed to deal with it.
* Merge pull request #1600 from dotty-staging/fix-#1500Guillaume Martres2016-10-251-0/+19
|\ | | | | Fix-#1500 Include constraining type variables when interpolating