aboutsummaryrefslogtreecommitdiff
path: root/compiler/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Add interface for unit tests into `ParallelTesting`Felix Mulder2017-03-291-0/+60
|
* Add initial compilation functionality to ParallelTesting traitFelix Mulder2017-03-291-0/+41
|
* Fix varargs in methods and constructors (#2135)Igor Mielientiev2017-03-221-0/+3
| | | | | | | * Fix varargs in methods (Issue: #1625) * Fix minor comments * Change varargs parameter message * Fix failed test, fix case for constructor
* Fix IntellliJ support by making dotty-doc its own subprojectFelix Mulder2017-03-211-2/+2
|
* Move 'invalid super qualifier' error to new error format.Abel Nieto2017-03-171-0/+24
| | | | | | | | | As part of https://github.com/lampepfl/dotty/issues/1589, use the new error message for static super references where the qualifier isn't a parent of the class. Tested: Added unit test.
* Merge pull request #2043 from dotty-staging/tailrec-derivesFromDmitry Petrashko2017-03-151-2/+2
|\ | | | | Tailrec for derivesFrom/lookupRefined/classSymbol/classSymbols
| * Add @tailrec to avoid regressions.Nicolas Stucki2017-03-011-2/+2
| |
* | Fix #2089: Error when compiling ParSetLike, ParSet, SetLike, in this orderGuillaume Martres2017-03-131-0/+4
| | | | | | | | | | This fix is inspired by 6c91684, but I couldn't tell you why it works exactly, it's just something I tried.
* | Fix compilation of ParSetLike by itselfGuillaume Martres2017-03-131-0/+1
| | | | | | | | | | | | | | Before this commit, ParSetLike compiled fine as part of compileStdLib but crashed when compiled by itself because we tried to force a LazyRef while forcing the same LazyRef. This commit fixes this by being slightly more lazy where it matters.
* | Move tests/tasty/* to tests/pickling/*Guillaume Martres2017-03-111-1/+0
| | | | | | | | | | These two directories were tested using the same flags, but tests/tasty compiled all of its files at once which is usually not what is intended.
* | Merge pull request #2049 from ennru/ennru_RecursiveNeedsTypeodersky2017-03-091-1/+94
|\ \ | | | | | | Change "recursive/cyclic definitions needs type" errors to Message
| * | Analysis of overloaded or recursive is harder than expectedEnno Runne2017-03-071-3/+3
| | | | | | | | | | | | Fall-back to reporting "overloaded or recursive needs type".
| * | More detail in error messagesEnno Runne2017-03-051-2/+37
| | | | | | | | | | | | | | | | | | Split error messages for recursive method and overloaded method needs type into two (but did not solve the analysis which to show). Make CyclicReference type error construct corresponding error message.
| * | Explanations for recursive/cyclic type requirementsEnno Runne2017-03-041-0/+58
| |/
* | Add FatalError from scala.reflectGuillaume Martres2017-03-081-2/+1
| |
* | Remove unused scala.reflect importsGuillaume Martres2017-03-071-1/+0
| |
* | FixesMartin Odersky2017-03-051-3/+0
|/ | | | | (1) Drop unused error message (2) Drop test which is now illegal
* Merge pull request #2028 from ennru/ennru_AnnotatedPrimaryConstructorRequiresFelix Mulder2017-03-011-0/+14
|\ | | | | Change 'private, protected, or this expected' to Message
| * Change 'private, protected, or this expected' to MessageEnno Runne2017-02-231-0/+14
| |
* | Fix import which produces flakey test resultsMartin Odersky2017-02-251-1/+1
|/ | | | | Previous import gave test errors under eclipse. Probably due to some stray directory on the classpath.
* Merge pull request #2015 from dotty-staging/add-pf-overloadingodersky2017-02-231-0/+0
|\ | | | | Add overloading support for case-closures
| * Extend argument pretyping to case-closuresMartin Odersky2017-02-211-0/+0
| |
* | Merge pull request #2012 from ennru/ennru_CantInstantiateAbstractFelix Mulder2017-02-221-0/+39
|\ \ | | | | | | Change 'is abstract; cannot be instantiated' to Message
| * | Change 'is abstract; cannot be instantiated' to MessageEnno Runne2017-02-201-0/+39
| |/
* | Fix test ^ 2Martin Odersky2017-02-211-1/+1
| |
* | 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