aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-scala2
Commit message (Collapse)AuthorAgeFilesLines
* Drop special case around Function1Martin Odersky2017-03-082-0/+90
| | | | | | Now only Scala2 mode treats Function1's as implicit conversions. Instead we introduce a new subclass ImplicitConverter of Function1, instances of which are turned into implicit conversions.
* Disable most tests that depend on scala-reflectGuillaume Martres2017-03-081-7/+0
|
* Fix #1792: Allow newline in front of `{` when supporting procedure syntax.Martin Odersky2016-12-141-0/+8
|
* Merge pull request #1465 from dotty-staging/fix-#1457odersky2016-09-162-0/+15
|\ | | | | Fix #1457: Three incompatbilities with scalac
| * Add test file.Martin Odersky2016-08-262-0/+15
| |
* | Add some run testsMartin Odersky2016-09-141-0/+9
| |
* | Test recategorizationMartin Odersky2016-08-261-0/+7
|/
* Fix bounds checking of hk applied typedMartin Odersky2016-07-141-1/+1
| | | | | Previous logic could only handle classes as constructors. Also, address other reviewers comments.
* Disallow higher-kinded types that simulate general existential typesMartin Odersky2016-07-112-0/+265
| | | | | | | | | | | We cannot handle such types in general. So we now check that a hk application C[args] where some of the arguments are wildcards does not have as a supertype a hk application ([X] -> B)[args]
* Don't evaluate isInstanceOf for value classes, disable bugged testsFelix Mulder2016-05-261-10/+0
| | | | | | | The tests `i1059.scala` and `t3480.scala` are failing due to a bug in pattern matcher that evaluates the `x` in `List(x: _*)` incorrectly. Concerned issue: #1276
* Downwards comparisons for implicit search and overloading resolutionMartin Odersky2016-05-231-0/+8
| | | | | | | | | Compare selected contravariant arguments as if they were covariant. Which ones is explained in the doc comment for method `isAsSpecificValueType` in Applications.scala. This has the same motivation than what @paulp proposed around 2012. The solution is a bit different from the one proposed then because it only affects top-level parameters.
* support `xs @ _*` and `_*` in Scala2 modeliu fengyun2016-03-181-0/+10
| | | | | | | | | | | | The standard syntax in Dotty now is `xs : _*`. In Scala2 mode, following code should be valid: list match { case List(_, _, _, _ @ _*) => 0 case List(_, _, _*) => 1 case List(_, _: _*) => 2 case Nil => 3 }
* Fix two rewrite patches.Martin Odersky2016-03-121-0/+1
| | | | | | | | | | | 1. trailing `_`: `x _` is rewritten to `(() => x)` not to `x` 2. lazy vals: Rewrites are done in Typer, not LazyVals. Later on we are too much at risk to hit synthetically generated lazy vals.
* Add patch for variance errorsMartin Odersky2016-03-121-0/+6
|
* Rewrite testMartin Odersky2016-03-121-0/+29
| | | | Test rewritings that were implemented so far.
* Enforce rule that laziness is preserved when overriding.Martin Odersky2016-02-091-0/+4
|
* Reorganize tests to account for new typing of projectionMartin Odersky2016-02-099-0/+262
Tests with failed projections are moved to pos-scala2, which was renamed from pos-special. Files in pos-scala2 are compiled with -language:Scala2 option.