| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A constructor
def this() { ... }
needs to be rewritten to
def this() = { ... }
not to
def this(): Unit = { ... }
|
| | |
|
| |
| |
| |
| |
| | |
No more leaking ofMove PatchedFiles in a settings option. Move all
patch classes into a `Rewrites` object.
|
| |
| |
| |
| |
| | |
Firs version of patching that can be invoked by dotty compiler
itself.
|
|/ |
|
|
|
|
| |
Fixes #1052.
|
|
|
|
| |
Lets one also pass named arguments to methods.
|
| |
|
|
|
|
|
| |
Changes needed to support simple named type parameters.
Not yet implemented: named arguments.
|
|
|
|
|
|
| |
It's not correct to just add `=` you also need to specify the return
type to be `Unit` otherwise things may not work as expected, this is
especially important for a `main` method.
|
| |
|
|
|
|
|
|
|
|
| |
Taking a reference means that the symbol will be brought forward into the current run,
then if the same symbol is entered from source, a datarace ensues.
This affected the ProductN symbols because these are automatically added to a case class
suring desugaring.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Deal gracefully with missing return types of abstract menthods.
|
| |
| |
| |
| |
| |
| |
| | |
1) Better error message: "missing return type" instead of `=' expected.
2) Allow them under language:Scala2
Fixes #871
|
|\ \
| | |
| | | |
Fix #851 Java parsing forgot type parameters
|
| |/
| |
| |
| | |
Fixes #851.
|
|/
|
|
|
|
|
| |
`(_)` and `(_: T)` should not be converted to functions
x => x
(x: T) => x
|
|
|
|
| |
Fix a crash in Typer#assertPositioned
|
|
|
|
| |
Avoids accidental combinations of term and type flags.
|
|
|
|
|
| |
Avoids having to fix all occurrences of procedure syntax. Will be extended to other
backwards compatible features.
|
|
|
|
|
| |
Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be
types.
|
|
|
|
| |
Only the parser needed to be updated. Everything else works out of the box.
|
|
|
|
|
|
|
| |
Add @sharable annotation for classes and vals that are presumed
to be safely sharable between threads.
Also: Document CtxLazy.
|
|
|
|
|
| |
This used to give a crash in SourcePositiom, promoted by feeding
its calculations with a negative offset.
|
|
|
|
|
| |
This mimics scalac's behavior (but not the official syntax; in fact the
official syntax seems to be ambiguous.
|
|
|
|
| |
Brings in line with Scala 2 spec.
|
|
|
|
| |
Implements #499
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Previously,
type Map = HashMap[Int, String]
new Map
did not work. See test aliasNew.scala for a test.
Formerly this logic handled in Parsers (wrapNew),
but that one does not work for aliastypes.
|
|
|
|
|
|
|
|
| |
After erasure, traits always extend object, and no other class.
The change flushed out three more problems, one in the handling of
Super trees in erasure, another in bridge method generation. and a
third that class RepeatedParam had Seq, which is a trait, as first parent.
|
| |
|
|
|
|
|
|
| |
The dummy constructor is needed so that the real constructors see the import of the companion object.
The constructor has a parameter of type Unit so that no Java code can call it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ported from scalac 2.11.x branch SHA 9753f23f9362b25a9f481b11dd8d51187187882a
This is mostly a direct port, with few significant dotty-specific
changes needed. The two more significant changes are:
In dotty, the first constructor of a class is pulled out separately from
the other stats in the Template.
The keyword detection code (buildKeywordArray) was moved into Tokens so
that it can more cleanly be shared by the Scala and Java scanners.
|
| |
|
|
|
|
| |
Typed MemberDef trees now take the modifiers from their symbol's data.
|
|
|
|
| |
Instead of desugaring in parser desugaring is now done during desugaring.
|
|
|
|
|
|
| |
Now Try node always has cases as handlers.
In case handler is an Ident of type Throwable => T
than it's desugared to a CaseDef during parsing.
|
|
|
|
| |
Also regorganized flags a bit to better use available slots.
|
|
|
|
| |
Avoid mentioning arguments that are unchanged.
|
|
|
|
|
|
|
|
| |
1) Add copiers with default arguments, to avoid boilerplate
2) All copiers are now curried wrt first argument (which is
the original tree).
We already make use of the new features in cpy.DefDef, but not yet elsewhere.
|