| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
|
|
|
| |
* Fix varargs in methods (Issue: #1625)
* Fix minor comments
* Change varargs parameter message
* Fix failed test, fix case for constructor
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
Tailrec for derivesFrom/lookupRefined/classSymbol/classSymbols
|
| | |
|
| |
| |
| |
| |
| | |
This fix is inspired by 6c91684, but I couldn't tell you why it works
exactly, it's just something I tried.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
Change "recursive/cyclic definitions needs type" errors to Message
|
| | |
| | |
| | |
| | | |
Fall-back to reporting "overloaded or recursive needs type".
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ |
|
| | |
|
| | |
|
|/
|
|
|
| |
(1) Drop unused error message
(2) Drop test which is now illegal
|
|\
| |
| | |
Change 'private, protected, or this expected' to Message
|
| | |
|
|/
|
|
|
| |
Previous import gave test errors under eclipse. Probably
due to some stray directory on the classpath.
|
|\
| |
| | |
Add overloading support for case-closures
|
| | |
|
|\ \
| | |
| | | |
Change 'is abstract; cannot be instantiated' to Message
|
| |/ |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\
| |
| | |
Remove unused flags
|
| | |
|
|\ \
| | |
| | | |
Use enum for error messages IDs.
|
| |/ |
|
|/
|
|
| |
This is necessary if we ever want to get rid of our dependency on scala-compiler
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|\
| |
| | |
fix #1484: position of while incorrect in debug
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* Change 'overrides nothing' to report via Message, split into two different messages
* Change 'overrides nothing' to report via Message, split into two different messages
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fix #1907: Improve error message
|
| | |
|
|/ |
|
|\
| |
| | |
Add sbt-based bootstrap
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|