aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix sorting of accessed this-proxiesMartin Odersky2017-02-191-0/+20
| | | | | | | | | | | | | | They are sorted according to the nesting depth of the classes they represent. This is no necessarily the same as the nesting level of the symbols of the proxy classes. i1990a.scala shows an example where the two differ.
| * Fix #1990: Handle case where inlining changes class of outerMartin Odersky2017-02-181-0/+12
| | | | | | | | | | | | | | | | | | | | The new situation in the test was that outer of the inlined method was `A` but it's as seen from type is a subtype `B`. We need two fixes: - Ignore outerSelects in TreeChecker. These are treated as having fixed symbols. - Adapt the outer-path logic to deal with code that's moved to another context.
* | Disable tests that require scala-compilerGuillaume Martres2017-02-185-206/+0
|/ | | | This is necessary if we ever want to get rid of our dependency on scala-compiler
* Fix #1976: Hack to support scala.xml's $scope (#1977)odersky2017-02-141-0/+4
| | | | | | This is a gross hack to support the need for a $scope binding when XML literals are created. It should go away once we phase out XML literals. A library-based solution should use implicits instead.
* Fix #1975: Align valdefs and for expressions for patternsMartin Odersky2017-02-141-0/+5
| | | | | | | | val definitions and for expressions both distinguish whether something is a pattern or a variable binding. They no do it the same way: `ident` or an `ident: type` is a variable binding, everything else is a pattern. Previously, capitalized idents were considered as bindings in valdefs but as pattern in fors.
* Fix parsing annotation on function typeGuillaume Martres2017-02-121-0/+1
|
* Merge pull request #1921 from dotty-staging/fix-#1907odersky2017-02-082-3/+3
|\ | | | | Fix #1907: Improve error message
| * Disallow taking a class tag of Nothing or Null.Martin Odersky2017-02-012-3/+3
| | | | | | | | | | | | | | | | It seems in most cases this leads to weird behavior and cause confusing error messages later. It also means we cannot create an Array[Nothing], except by passing the classtag explicitly.
* | Merge pull request #1941 from dotty-staging/fix/infix-posodersky2017-02-081-0/+4
|\ \ | | | | | | Better positions for infix operations
| * | 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.
* | | Fix wildApprox functionMartin Odersky2017-02-071-0/+1
|/ / | | | | | | | | | | | | | | | | | | f-bounded-case-class.scala exhibited a StackOverflow in wildApprox before the fixes. The problem was due to F-bounds. Note: wildApprox is performance critical. I ran timed-bootstrap-repeated a couple of times to verify that the changes did not affect runtimes in significant ways. We should also watch out for a slowdown in the benchmark tests.
* | 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
| | |_|/ | |/| |