aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Allow dependent method type for unapply.Martin Odersky2016-04-271-0/+14
|
* Revert: Better error diagnostics for "not an extractor" errors.Martin Odersky2016-04-271-27/+0
| | | | | No longer needed because we are going to allow dependent method types in extractors, and the unary requirement is kind of obvious.
* Better error diagnostics for "not an extractor" errors.Martin Odersky2016-04-271-0/+27
| | | | | Now explains in detail why an possibly found unapply or unapplySeq is ineligible.
* Test caseMartin Odersky2016-04-271-0/+16
|
* Merge branch 'master' into fix-equalityodersky2016-04-263-0/+30
|\
| * Merge pull request #1227 from dotty-staging/implement-1221Dmitry Petrashko2016-04-263-0/+30
| |\ | | | | | | Allow to specify per-callsite @tailrec annotation.
| | * Fix test failures in tailcall due to name clashes.Dmitry Petrashko2016-04-212-2/+2
| | |
| | * Add neg-test for method with @tailrec callsites that is not final.Dmitry Petrashko2016-04-181-0/+10
| | |
| | * Test #1221.Dmitry Petrashko2016-04-182-0/+20
| | |
* | | Add test that demonstrate that #878 is fixedGuillaume Martres2016-04-221-0/+17
| | | | | | | | | | | | It was fixed by 2460f9603b0f0ed1d73dfea99edcee9ba6261d36
* | | Support implicitNotFound annotationMartin Odersky2016-04-221-3/+6
| | |
* | | Avoid propagating unresolved implicitsMartin Odersky2016-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an implicit argument is not found, we should in any case assume the result type of the implicit method as the type of the tree (after reporting an error, of course). If we don't do that, we get implicit errors on weird positions when we try to find an implicit argument for the same tree again. This caused a spurious error in subtyping.scala, and also caused an additional error at the end of EqualityStrawman1.scala.
* | | Straw man for multiversal equality.Martin Odersky2016-04-211-0/+76
|/ / | | | | | | | | | | | | This test shows how we can make equality non-universal in Scala. It also exhibited the two bugs fixed in the previous two commits. Also related: SI-9763.
* | Merge pull request #1219 from dotty-staging/fix-strawmansDmitry Petrashko2016-04-207-2/+1568
|\ \ | | | | | | Fix strawmans
| * | Fix check filesMartin Odersky2016-04-172-2/+0
| | |
| * | Updates of strawmanMartin Odersky2016-04-176-46/+867
| | | | | | | | | | | | | | | Bring strawman-4 and strawman-5 to feature-parity. Test also strawman-4.
| * | Drop type annotation in collection testMartin Odersky2016-04-161-1/+1
| | |
| * | Add check fileMartin Odersky2016-04-151-0/+68
| | |
| * | New testsMartin Odersky2016-04-153-2/+681
| | | | | | | | | | | | | | | | | | | | | New CollectionStrawMan5, executed as runttest in two different ways: - built with scalac, test compiled by dotty in tests/run. - built with dotty, test compiled by dotty using separate compilation.
* | | Add a test to check multidimenstionall arrays.Dmitry Petrashko2016-04-181-0/+37
| |/ |/|
* | Merge pull request #1211 from dotty-staging/fix-#1202odersky2016-04-167-0/+36
|\ \ | |/ |/| Fix Tasty errors
| * Rearrange pickle testsMartin Odersky2016-04-092-0/+1
| | | | | | | | | | | | | | 1) Move passing test to pickling 2) Add test case for #1212 in pending 3) Disable annotations/internal in pickling tests. They lead to a stable symbol error which is explainable (modifiers are read before symbol is created).
| * Fix unpickling of Java SeqLiteralsMartin Odersky2016-04-071-0/+4
| | | | | | | | | | | | | | | | | | | | Two problems were fixed: - isJava needs to look at function symbol, not its type (references to Java methods get normal MethodTypes not JavMethodTypes) - we also need to handle the case where the repeated argument is wrspped in a type ascription.
| * Fix flags when unpickling setters of parameter accessorsMartin Odersky2016-04-071-0/+1
| | | | | | | | | | | | ParamAccessor is not a pickled flag. This is not a problem for normal parameter accessors which are pickled as PARAM fields. But setters of parameter accessors also need to have the flag set (and Deferred reset).
| * Test casesMartin Odersky2016-04-072-0/+16
| |
| * Augment test caseMartin Odersky2016-04-071-0/+14
| |
* | Check that #1216 is fixed.Dmitry Petrashko2016-04-142-0/+22
| |
* | Merge pull request #1186 from dotty-staging/fix-#1185odersky2016-04-066-12/+141
|\ \ | |/ |/| Improvements to cyclic checking, avoidance, named parameters
| * Domain checking for named type parametersMartin Odersky2016-03-302-10/+13
| | | | | | | | | | | | Now verifies that the named type parameters of an overriding type or class are the same as the named type parameters of an overridden type.
| * Test casesMartin Odersky2016-03-302-2/+52
| |
| * Fix test case.Martin Odersky2016-03-301-4/+4
| | | | | | | | The intent is that Repr implementations should not bind the Out parameter.
| * Add test for #1181 to pendingMartin Odersky2016-03-301-0/+12
| |
| * Simplify and fix avoid logicMartin Odersky2016-03-301-0/+33
| | | | | | | | | | The previous formulation broke for named parameters. Test case in flowops1.scala.
| * Fixes to checkNonCyclicMartin Odersky2016-03-301-0/+31
| | | | | | | | | | | | | | | | | | Simplified logic and now check prefixes of TypeRefs. Without the simplified logic we would get false cyclic errors for ski.scala. Test case: flowops.scala Fixes #1185.
* | Tailrec: drop support for polymorphic recursion.Dmitry Petrashko2016-03-311-2/+2
| | | | | | | | | | | | | | | | | | | | If the method that recurses over a different type arguments, if this method is specialised, it would lead to method not being tail-rec anymore. Eg: def foo[@specialized A, @specialized B]: Unit = foo[B, A]
* | FullParametrization: allow to have $this of ThisType.Dmitry Petrashko2016-03-311-0/+26
| | | | | | | | | | | | | | | | | | TailRec methods remain members of enclosing class, it means that they can refer to methods that require this.type. It means that tailrec, unlike value classes is not allowed to widen type of $this to it's full self type. Fixes #1089
* | Remove Variances.scala files accidentally leftover from #1193Guillaume Martres2016-03-312-30/+0
| | | | | | | | These files were supposed to be remove, their content are now in variances.scala
* | merge variances and VariancesMartin Odersky2016-03-312-0/+30
| |
* | Merge pull request #1182 from dotty-staging/repl-fixesodersky2016-03-314-0/+71
|\ \ | | | | | | Repl fixes and tests
| * | Add test fileMartin Odersky2016-03-181-0/+24
| | |
| * | Add REPL testsMartin Odersky2016-03-183-0/+47
| | |
* | | Add tests related to variance checking.Sandro Stucki2016-03-302-0/+30
| |/ |/|
* | Merge pull request #1104 from dotty-staging/spec-bugsDmitry Petrashko2016-03-241-0/+17
|\ \ | | | | | | Improvements & bugs that were discovered while implementing specialization.
| * | Add a test that checks that no useless forwarders are being created.Dmitry Petrashko2016-03-151-0/+17
| | |
* | | Fix problem involving classtag based pattern matches.Martin Odersky2016-03-211-0/+19
| | | | | | | | | | | | | | | | | | Rewriting did not go far enough, as evidenced by pos/i1174.scala Fixes #1174
* | | support `xs @ _*` and `_*` in Scala2 modeliu fengyun2016-03-182-0/+20
| |/ |/| | | | | | | | | | | | | | | | | | | | | 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 }
* | Merge pull request #1166 from dotty-staging/fix-#1136odersky2016-03-182-2/+2
|\ \ | | | | | | Fix typing of SeqLiterals
| * | Fix test casesMartin Odersky2016-03-112-2/+2
| | | | | | | | | | | | The test contained an error that was unvovered by the "Nothing is not Nullable" fix.
* | | Merge pull request #1160 from dotty-staging/add/collection-strawmanodersky2016-03-183-4/+47
|\ \ \ | | | | | | | | Add/collection strawman
| * | | Refine pretypeArgsMartin Odersky2016-03-092-1/+40
| | | | | | | | | | | | | | | | | | | | It worked more or less by accident before. Now it's more complicated, but we also have tests.