aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
Commit message (Collapse)AuthorAgeFilesLines
* Represent untyped operators as Ident instead of NameGuillaume Martres2017-02-051-0/+4
| | | | | | | | This has two advantages: - We can distinguish BackquotedIdent from Ident, allowing the user to use a defined "type `&`", see testcase. - We get better positions for the operators. This is useful in IDEs, for example to get the type at point.
* Merge pull request #1922 from dotty-staging/fix-#1723odersky2017-02-021-0/+8
|\ | | | | Fix-#1723: Avoid private leaks on completion
| * Fix-#1723: Avoid private leaks on completionMartin Odersky2017-02-011-0/+8
| | | | | | | | As #1723 demonstrates, doing this at PostTyper is too late.
* | Merge pull request #1881 from dotty-staging/add-structural-selectodersky2017-02-012-0/+50
|\ \ | | | | | | Implement structural type member access
| * | Add test case for #1866Martin Odersky2017-01-101-0/+5
| | | | | | | | | | | | The PR also fixes #1866, as shown by this test case.
| * | Change scheme to use SelectableMartin Odersky2017-01-071-0/+1
| | | | | | | | | | | | | | | Use base types instead of implicits. This is more robust in the presence of type abstraction.
| * | Implement structural type member accessMartin Odersky2017-01-051-0/+44
| | | | | | | | | | | | New scheme for implementing structural type member access.
* | | Fix #1916 - fix erasure of xxl closuresMartin Odersky2017-01-311-72/+0
| |/ |/| | | | | | | xxl closures need to get the SAM type FunctionXXL as their explicit type field after ersure.
* | Test that #1687 is fixed.Dmitry Petrashko2017-01-222-0/+29
| | | | | | | | The b-test would compile for a millenia without the fix.
* | Fix #1891: Don't add redundant constraintMartin Odersky2017-01-101-0/+11
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #1887 from dotty-staging/fix-#1867Guillaume Martres2017-01-071-0/+3
|\ \ | |/ |/| Fix #1867: Set position of empty refined types
| * Fix #1867: Set position of empty refined typesMartin Odersky2017-01-041-0/+3
| |
* | 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.