aboutsummaryrefslogtreecommitdiff
path: root/compiler/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1896 from dotty-staging/fix/bootstrapGuillaume Martres2017-01-285-60/+23
|\ | | | | Add sbt-based bootstrap
| * Fix bug in partest.DPConsoleRunnerGuillaume Martres2017-01-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug was that we declared case classes like: case class CompFailed() extends NegTestState but we used their companion objects like in: case _ => CompFailed Interestingly, this bug was caught by compiling this code with dotty, instead of `failureStates` getting inferred to be of type `AnyRef`, it ended up being a union of object types, this allows dotty to realize our subsequent pattern match on `failureStates` cannot possibly succeed: -- Error: /home/smarter/opt/dotty/compiler/test/dotty/partest/DPConsoleRunner.scala 353 | case CompFailedButWrongDiff() => | ^ | missing parameter type for parameter x$1 of expanded function x$1 => | x$1 @unchecked match | { | case CompFailedButWrongDiff() => | nextTestActionFailing(s"output differs") | true | case _ => | false | }, expected = ? -- Error: /home/smarter/opt/dotty/compiler/test/dotty/partest/DPConsoleRunner.scala 353 | case CompFailedButWrongDiff() => | ^^^^^^^^^^^^^^^^^^^^^^^^ |Pattern type CompFailedButWrongDiff is neither a subtype nor a supertype of selector type CompSucceeded | CompFailedButWrongNErr | CompFailed | CompFailedButWrongDiff'where: CompFailedButWrongDiff is a class in method runNegTest | CompFailedButWrongDiff' is a object in method runNegTest
| * Fix some dotty compilation errorsGuillaume Martres2017-01-283-5/+10
| |
| * Use new sbt-based bootstrap for partest tooGuillaume Martres2017-01-271-40/+0
| | | | | | | | | | | | | | `partest` and `partest-only` are now run through `dotty-compiler-bootstrapped`. The old bootstrapping mechanism is deleted since it has been unmaintained and broken for several months and that I do not wish to maintain two bootstrapping mechanisms.
| * Do not hardcode jars path in the tests, instead get them from sbtGuillaume Martres2017-01-271-11/+9
| | | | | | | | | | This is necessary to run the tests with the bootstrapped projects and is just much better than hardcoding them anyway.
* | Fix #1908: give synthetic default params correct flagsFelix Mulder2017-01-251-0/+49
|/
* Merge pull request #1880 from dotty-staging/improve-whitelist-infrastructureodersky2017-01-124-685/+87
|\ | | | | Improve whitelist infrastructure.
| * Add useExplicitWhiteList for debugging.Nicolas Stucki2017-01-111-1/+27
| |
| * Simplify blacklist paths.Nicolas Stucki2017-01-052-19/+22
| |
| * Remove whitelist and keep only blacklist.Nicolas Stucki2017-01-053-654/+8
| | | | | | | | | | | | Now that that the blacklist is fully know and is small enough, it will be simpler to maintain only the blacklist.
| * Add stdlib whitelist loader.Nicolas Stucki2017-01-052-22/+41
| |
* | Merge pull request #1690 from dotty-staging/benchDmitry Petrashko2017-01-111-1/+1
|\ \ | | | | | | Fix benchmarks and add multiple mini benchmark tests
| * | fix benchmark testliu fengyun2016-11-241-1/+1
| | |
* | | Bump version from 0.1-SNAPSHOT to 0.1.1-SNAPSHOTGuillaume Martres2017-01-082-4/+4
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | This is useful for two reasons: - All published Scala versions are of the form a.b.c and some tooling expect that, like sbt CrossVersion API. - Using 0.1.1 instead of 0.1.0 means that we match the version number of dotty-sbt-bridge, this is simpler and means that in the future sbt could automatically choose the correct version of dotty-sbt-bridge so that the user does not need to specify scalaCompilerBridgeSource in his build.sbt Note: it's awful that we have hardcoded paths to jars and that I had to change them, but I won't fix that now.
* | Fix test pos/compileStdLibNicolas Stucki2017-01-033-6/+24
| | | | | | | | | | | | | | | | The issue was that all the files stdlib files where copied in partest-generated/pos/compileStdLib direclty (i.e. directories flattend). This implies that files with the same names would overwrite eachother (like `package.scala` and `Set.scala`).
* | Tweak the way annotations are represented in desugaringMartin Odersky2016-12-212-4/+1
| | | | | | | | | | Need to be careful not to read a classfile before a compilation unit defining the annotation is entered.
* | Fiddling with wideneningMartin Odersky2016-12-212-8/+4
| | | | | | | | | | | | Fixing two failures in stdlib having to do with widening. In both cases, a widenIfUnstable was required. One was widening too much, the other too little.
* | Fix dottydoc ast phaseFelix Mulder2016-12-202-12/+1
| |
* | Reorganize blacklist along failure classesMartin Odersky2016-12-202-15/+39
| |
* | Blacklist SystemProperties againMartin Odersky2016-12-202-2/+4
| | | | | | | | | | SystemProperties leads to a dottydoc failure, so stays blacklisted for now. It does pass the normal compile-stdlib test.
* | Further massaging of stdlib-collections listsMartin Odersky2016-12-202-34/+10
| |
* | More reorgs to scala-collectons listsMartin Odersky2016-12-202-47/+31
| | | | | | | | | | | | - Move non-specialized functions to whitelist - Replace `macro ???` with just `???` in scala-scala Several other consolidations
* | More reshuffling of scala-collections listsMartin Odersky2016-12-202-96/+25
| |
* | Update scala-collections listsMartin Odersky2016-12-202-9/+23
| |
* | More lenient handling of mixed parameterless and nullary methodsMartin Odersky2016-12-201-5/+0
| | | | | | | | | | When faced with a denotation that combines parameterless and nullary method definitions (toString is a common example), ignore any redundant () applications.
* | Fix typo in file nameMartin Odersky2016-12-201-1/+1
| |
* | Blacklist scala/util/Sorting.scala (reverted from commit ↵Martin Odersky2016-12-202-2/+3
| | | | | | | | b960b12887331744c9ecaeedc90054fc2e313230)
* | Don't require override for Java interface default methodsMartin Odersky2016-12-202-7/+2
| | | | | | | | | | | | Under language:Scala2, don't require an explicit `override' when overriding default methods of Java traits. `scalac` does currently the same thing.
* | Merge pull request #1833 from dotty-staging/fix-#1793odersky2016-12-192-5/+1
|\ \ | | | | | | Fix #1793: allow multiversal comparisons between Null and X
| * | whitelist WeakReferenceFelix Mulder2016-12-192-5/+1
| | |
* | | Merge pull request #1831 from dotty-staging/fix/dotty-on-dottyGuillaume Martres2016-12-191-5/+7
|\ \ \ | | | | | | | | Fix JUnit compilation of dotty by dotty
| * | | Add back a JUnit "dotty" testGuillaume Martres2016-12-191-0/+5
| | | | | | | | | | | | | | | | | | | | This way we can test that dotty compiles dotty using dotty-compiler/test-only -- --tests=dotty
| * | | Fix booted tests not compiling anythingGuillaume Martres2016-12-191-6/+3
| |/ / | | | | | | | | | | | | This was broken in 06a3d47ea9fd1b67b3acba9d115a16d18549e377 when the -deep argument was removed
* / / Fix #1794: handle TermRef result types in dottydocFelix Mulder2016-12-192-3/+1
|/ /
* | Blacklist scala/util/Sorting.scalaNicolas Stucki2016-12-182-1/+3
| |
* | Whitelist source for scala/sys/BooleanPropNicolas Stucki2016-12-182-3/+1
| |
* | Whitelist ObservableMapNicolas Stucki2016-12-182-15/+6
| |
* | Whitelist sources from scala/Nicolas Stucki2016-12-182-39/+40
| |
* | Whitelist sources from scala/runtimeNicolas Stucki2016-12-182-37/+45
| |
* | Whitelist sources from scala/annotationNicolas Stucki2016-12-182-26/+27
| |
* | Whitelist sources from scala/Nicolas Stucki2016-12-182-2/+8
| |
* | Whitelist sources from scala/collection/parallelNicolas Stucki2016-12-182-20/+67
| |
* | Whitelist sources from scala/concurrentNicolas Stucki2016-12-182-21/+36
| |
* | Whitelist sources from scala/collection/scriptNicolas Stucki2016-12-182-4/+4
| |
* | Blacklist scala/sys/SystemProperties.scalaNicolas Stucki2016-12-182-1/+3
| |
* | Whitelist sources from scala/reflectNicolas Stucki2016-12-182-4/+22
| |
* | Whitelist sources from scala/refNicolas Stucki2016-12-182-5/+9
| |
* | Whitelist all sources from scala/mathNicolas Stucki2016-12-182-4/+4
| |
* | Whitelist sources from scala/ioNicolas Stucki2016-12-182-4/+13
| |
* | Whitelist sources from scala/beansNicolas Stucki2016-12-182-9/+9
| |