aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Extend test case to test variations of modifiers on trait parameters.Martin Odersky2016-07-251-0/+24
| | | |
| * | | Fix #1263: Suppress super initializer call for val parameters of traits.Martin Odersky2016-07-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Val-parameters of traits don't have an initializer, as other vals do. So we cannot call the initializer in an initialization sequence of a subclass. Fixes #1263.
* | | | Merge pull request #1289 from dotty-staging/fix/partest-separateGuillaume Martres2016-07-2710-5/+7
|\ \ \ \ | | | | | | | | | | partest: Enable separate compilation
| * | | | Fix colltest4: ListBuffer[A]#fromIterable had an incorrect castFelix Mulder2016-07-271-1/+1
| | | | |
| * | | | Move java tests relying on type parameters to pendingGuillaume Martres2016-07-274-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the classfiles emitted by dotty do not contain the type parameters information that javac relies on. Fixing this is tracked by #1303.
| * | | | pos/java-interop/volatile: Fix compilation with javacGuillaume Martres2016-07-271-0/+0
| | | | | | | | | | | | | | | | | | | | javac wants the public class name to match the filename.
| * | | | Remove overloaded constructor for annotationsGuillaume Martres2016-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lead to inference failures when separately compiling t1751 and t294, this did not happen under joint compilation because JavaParser does not create the overloaded constructor
| * | | | Fix colltest5 test under separate compilationGuillaume Martres2016-07-274-3/+5
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test failed before because strawman.collections.CollectionStrawMan5 is defined in two places: - src/strawman/collections/CollectionStrawMan5.scala - tests/run/colltest5/CollectionStrawMan5_1.scala The first will be compiled by scalac (unless the tests are run through a bootstrapped dotty) and the second will be compiled by dotty, the value class encoding of scalac and dotty are not binary compatible. This would not be a problem if we always used the `CollectionStrawMan5` coming from the partest output directory and ignored the one in the dotty sources, but which one gets picked depends on the classpath and whether compilation is joined or separate, see #1301. For now, it's safer and simpler to just avoid having tests which define a class that is also defined in the sources of dotty. Also, fix a bug in colltest4 where it was importing CollectionStrawMan5 instead of CollectionStrawMan4
* | | | Merge pull request #1415 from dotty-staging/fix-i1354odersky2016-07-272-0/+33
|\ \ \ \ | | | | | | | | | | fix #1354: improve type test of union types
| * | | | fix #1354: improve type test and typecast of union typesliu fengyun2016-07-262-0/+33
| |/ / /
* | | | Merge pull request #1412 from dotty-staging/fix-#1284odersky2016-07-261-0/+8
|\ \ \ \ | | | | | | | | | | Fix #1284: Make classTag depend directly on erasure
| * | | | Fix #1284: Make classTag depend directly on erasureMartin Odersky2016-07-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the end, a classTag reflects the erased version of a type. The only condition for its generation should be that the erasure is stable under possible instantiations.
* | | | | Merge pull request #1409 from dotty-staging/fix-hk-typdefs-of-lambdasGuillaume Martres2016-07-251-0/+21
|\ \ \ \ \ | |_|/ / / |/| | | | Fix parameterized typedefs with lambdas as rhs
| * | | | Take curried type lambdas into accountMartin Odersky2016-07-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Adapt operations TypeApplications and TypeComparer to account for the possibilities of curried type lambdas.
| * | | | Fix parameterized typedefs with lambdas as rhsMartin Odersky2016-07-221-0/+9
| | |/ / | |/| | | | | | | | | | | | | | | | | | Previously the compiler crashed when faced with a parameterized typedef that has a lambda as rhs. We fix this by refining the condition when not to abstract in typeDefsig.
* | | | Adress reviewers commentsMartin Odersky2016-07-251-1/+1
| | | |
* | | | Fix #1385: Temporarily lift 22 limit for functionsMartin Odersky2016-07-251-0/+7
| |/ / |/| |
* | | Fix #1401: Make sure all refs are forwardedMartin Odersky2016-07-211-0/+25
|/ / | | | | | | | | | | | | | | | | | | | | | | Faced with recursive dependencies through self types, we might have to apply `normalizeToClassRefs` to a class P with a parent that is not yet initialized (witnessed by P's parents being Nil). In that case we should still execute forwardRefs on P, but we have to wait in a suspension until P is initialized. This avoids the problem raised in #1401. I am still not quite sure why forwardRefs is needed, but it seems that asSeenFrom alone is not enough to track the dependencies in this case.
* | Merge pull request #1395 from dotty-staging/fix-#1378odersky2016-07-211-0/+3
|\ \ | | | | | | Fix #1378: Propagate more knowledge of result type into applications
| * | Proparage function result constrains when inferring parameter typesMartin Odersky2016-07-161-0/+3
| |/ | | | | | | | | | | | | | | If an application has functions with implicit parameter types we need to be more aggressive about propagating knowledge of the expected result type into the constraint. Fixes #1378.
* | Merge pull request #1402 from dotty-staging/fix-wildcard-protosGuillaume Martres2016-07-191-0/+11
|\ \ | | | | | | Fix wildcard protos
| * | Add test caseMartin Odersky2016-07-191-0/+11
| | |
* | | Merge pull request #1400 from dotty-staging/fix/hk-reduce-typerefsodersky2016-07-192-0/+22
|\ \ \ | |/ / |/| | HK reduction: Remove special-case for typerefs
| * | HK reduction: Remove special-case for typerefsGuillaume Martres2016-07-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The special case: case stripped: TypeRef => stripped.symbol.is(BaseTypeArg) is wrong because you might still want to reduce applications involving TypeRefs which are not base class parameters, like in: class Foo[A] type Alias[X] = Foo[X] val x: Alias[Int] = ??? `Alias` is a TypeRef so before this commit `Alias[Int]` was never reduced to `Foo[Int]`. It should have been: case stripped: TypeRef if stripped.symbol.is(BaseTypeArg) => true But even this is incorrect: it assumes that we can always safely reduce HK applications involving base class parameters, this is not the case when the parameter kind is different from the rhs kind as illustrated by `i1181c.scala`. We fix this by simply dropping the special case.
| * | Better test for #1181Guillaume Martres2016-07-181-0/+11
| |/ | | | | | | | | | | | | | | | | | | Now that we implement partial higher-order unification (SI-2712 fix) i1181.scala will compile even if `Alias[Int]` gets dealiased to `(Int, Int)` because we can unify the latter with `M[_]` where `M = [X] -> (Int, X)`. The new test will only succeed if `Alias[Int, Int]` is not dealiased because we will never unify `Foo[Int]` with `M[_,_]`.
* | Merge pull request #1393 from dotty-staging/fix-#1386odersky2016-07-181-0/+4
|\ \ | | | | | | Fix #1386: Reduce double def errors
| * | Refine disambiguation logic and add test case.Martin Odersky2016-07-151-0/+4
| | |
* | | Merge pull request #1399 from dotty-staging/fix-patmat-typingodersky2016-07-182-0/+25
|\ \ \ | | | | | | | | Fix typing of match expressions
| * | | Fix test error annotationMartin Odersky2016-07-181-1/+1
| | | |
| * | | Add test caseMartin Odersky2016-07-181-0/+24
| | | | | | | | | | | | | | | | Also fix reviewers comments about `firstParent`
| * | | Fix typing of match expressionsMartin Odersky2016-07-171-0/+1
| | |/ | |/| | | | | | | | | | Allow matches between unapply types and selector type where a possible overlap might exist.
* | | Merge pull request #1389 from dotty-staging/fix-#1381odersky2016-07-185-6/+80
|\ \ \ | |/ / |/| | Changes to overloading
| * | Make run tests for #1381.Nicolas Stucki2016-07-183-36/+66
| | |
| * | Add testsMartin Odersky2016-07-153-0/+39
| | | | | | | | | | | | | | | | | | Adds the original test form #1381. t2660 looks similar. Also adds some unrelated tests I had in the queue that now compile.
| * | Additions to testMartin Odersky2016-07-151-0/+9
| | |
| * | Changes to overloadingMartin Odersky2016-07-151-6/+2
| | | | | | | | | | | | | | | | | | Fix #1381: Overloading is now changed so that we first try without implicit searches. Only if that leaves no applicable alternatives we try again with implicit search turned on. This also fixes test case t2660, which got moved from neg to pos.
* | | Merge pull request #1377 from dotty-staging/#1365odersky2016-07-151-0/+13
|\ \ \ | | | | | | | | Fix 1365: Fix bindings in patterns
| * | | Fix 1365: Fix bindings in patternsMartin Odersky2016-07-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | We need to compare pattern types with expected types in order to derive knowledge about pattern-bound variables. This is done use the mechanism of gadt bounds.
* | | | Merge pull request #1291 from nicolasstucki/implement-scala-dynamicDmitry Petrashko2016-07-1534-0/+462
|\ \ \ \ | | | | | | | | | | Add scala.Dynamic support.
| * | | | Fix TypeOps.featureEnabled ignoring import disabling.Nicolas Stucki2016-07-071-0/+10
| | | | |
| * | | | Add scala.Dynamic language feature check.Nicolas Stucki2016-07-072-0/+10
| | | | |
| * | | | Fix #657: Add scala.Dynamic support.Nicolas Stucki2016-07-0732-0/+442
| |/ / /
* | | | Merge pull request #1334 from dotty-jvican/implement-no-predef-no-importDmitry Petrashko2016-07-153-0/+9
|\ \ \ \ | |_|/ / |/| | | Implement -Yno-predef and -Yno-imports
| * | | Implement -Yno-predef and -Yno-importsjvican2016-06-293-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Implement flags -Yno-predef and -Yno-imports * Add unit tests for both
* | | | Merge pull request #1343 from dotty-staging/change-hk-direct2odersky2016-07-1544-76/+404
|\ \ \ \ | | | | | | | | | | Direct representation of higher-kinded types
| * | | | Bounds of type lambdas compare contravariantlyMartin Odersky2016-07-152-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable checking of bounds when comparing type lambdas. This invalidates a pattern used in t2994 and potentially other code, where a bound [X] -> Any is used as a template that is a legal supertype of all other bounds. The old behavior is still available under language:Scala2.
| * | | | Add test case for hk bounds checkingMartin Odersky2016-07-141-0/+23
| | | | |
| * | | | Fix bounds checking of hk applied typedMartin Odersky2016-07-143-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | Previous logic could only handle classes as constructors. Also, address other reviewers comments.
| * | | | Allow hk parameters in lower boundsMartin Odersky2016-07-133-11/+15
| | | | |
| * | | | Enable test for fixed #1181: Typer should preserve aliases in TypeTreesGuillaume Martres2016-07-121-0/+0
| | | | | | | | | | | | | | | | | | | | This was fixed two commits ago.