aboutsummaryrefslogtreecommitdiff
path: root/compiler/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix testMartin Odersky2017-02-211-1/+1
| |
* | Fix #2000: Make implicit and non-implicit functions incomparable with <:<Martin Odersky2017-02-211-0/+1
|/ | | | | | | | | Implicit and non-implicit functions are incomparable with <:<, but are treated as equivalent with `matches`. This means implicit and non-implicit functions of the same types override each other, but RefChecks will give an error because their types are not subtypes. Also contains a test for #2002.
* Change 'mixed left- and right-associative operators' to MessageEnno Runne2017-02-201-0/+23
|
* Merge pull request #1987 from dotty-staging/topic/remove-unused-flagsFelix Mulder2017-02-201-2/+0
|\ | | | | Remove unused flags
| * Make non-existent compiler options emit warnings instead of failingFelix Mulder2017-02-201-2/+0
| |
* | Merge pull request #1986 from dotty-staging/error-messages-idsFelix Mulder2017-02-201-4/+2
|\ \ | | | | | | Use enum for error messages IDs.
| * | Use enum for error messages IDs.Nicolas Stucki2017-02-161-4/+2
| |/
* / Disable tests that require scala-compilerGuillaume Martres2017-02-181-1/+0
|/ | | | This is necessary if we ever want to get rid of our dependency on scala-compiler
* Change '... expected but found ...' to MessageEnno Runne2017-02-142-1/+30
|
* increase command wait time to 1sliu fengyun2017-02-141-1/+1
| | | | | | | | | | | | | | | This change helps to reduce non-determinism in the test. The problem can happen when two consecute commands interfere: [expect] [jdb] cmd1 ----> sleep 0.5 <--- part 1 of rep1 read & match buffer clear buffer cmd2 ----> <--- part 2 of rep1
* Ennru forward reference error (#1973)Enno2017-02-141-1/+23
| | | | | | | | | | * Change 'forward reference extending over the definition' to Message * Change 'forward reference extending over the definition' to Message * pesky file should not be included * Change 'forward reference extending over the definition' to Message (test case)
* Merge pull request #1951 from dotty-staging/fix-1484Felix Mulder2017-02-133-0/+205
|\ | | | | fix #1484: position of while incorrect in debug
| * remove noise in test outputliu fengyun2017-02-111-4/+7
| |
| * remove dependency on scala scriptliu fengyun2017-02-103-172/+182
| |
| * fix #1484: position of while incorrect in debugliu fengyun2017-02-102-0/+192
| |
* | Change 'overrides nothing' to report via Message (see #1965) (#1968)Enno2017-02-121-0/+43
| | | | | | | | | | | | * Change 'overrides nothing' to report via Message, split into two different messages * Change 'overrides nothing' to report via Message, split into two different messages
* | Support expecting compiler errors from all phasesEnno Runne2017-02-102-4/+4
|/
* Address reviews for #1966Felix Mulder2017-02-102-10/+12
|
* Make DottyTest a TraitFelix Mulder2017-02-102-3/+3
|
* Fix #1965: add proper testing infrastructure for reporting testsFelix Mulder2017-02-103-1/+116
|
* Merge pull request #1921 from dotty-staging/fix-#1907odersky2017-02-081-14/+19
|\ | | | | Fix #1907: Improve error message
| * Improve formattingMartin Odersky2017-02-011-14/+19
| |
* | fix incorrect flatten of thicket inside interpolated string in UntpdTreeMapliu fengyun2017-01-301-0/+32
|/
* 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)