| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit fixes errors that would've occurred in this situation:
```
/** Docstring 1 */ <- this one would've been chosen
/** Docstring 2 */
/** Docstring 3 */
class Class
```
And this situation:
```
/** Docstring 1 */
trait Trait
/** Docstring 2 */ <- this one would've been chosen
```
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
File was moved, it's no longer in package typer.
|
|
|
|
|
| |
Mode is used from a lot of low-level code, does not just reflect Typer info.
So it makes more sense top to place it in the core package.
|
| |
|
|\
| |
| | |
Repl fixes and tests
|
| | |
|
| |
| |
| |
| |
| |
| | |
Central config class replaces mixture of parameters and fields.
The fields were in part in the wrong class, where they could not
easily be overridden.
|
| | |
|
|/ |
|
|\
| |
| | |
Fix typing of SeqLiterals
|
| |
| |
| |
| |
| |
| |
| | |
The field keeps track of the element type. This is necessary
because JavaSeqLiteral is nonvariant and the elements might
be empty, so we cannot always compute the type from the
element types.
|
| |
| |
| |
| | |
Remove println; add docs
|
|/
|
|
| |
Test rewritings that were implemented so far.
|
|\
| |
| | |
Initial infrastructure and hello world for the Scala.js back-end.
|
| |
| |
| |
| |
| |
| | |
This required the ability to instantiate a different `Platform`
depending on settings, which, in turn, required to defer the
initialization of `ContextBase.platform`.
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Special case pattern matching against abstract types with class tags
|
| |
| |
| |
| |
| | |
Tests failures were caused by previous incomplete implementation
of classTag.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We introduce a new entry point for the compiler in
`dotty.tools.dotc.Driver`:
```
def process(args: Array[String], simple: interfaces.SimpleReporter,
callback: interfaces.CompilerCallback): interfaces.ReporterResult
```
Except for `args` which is just an array, the argument types and return
type of this method are Java interfaces defined in a new package called
`dotty-interfaces` which has a stable ABI. This means that you can
programmatically run a compiler with a custom reporter and callbacks
without having to recompile it against every version of dotty: you only
need to have `dotty-interfaces` present at compile-time and call the
`process` method using Java reflection.
See `test/test/InterfaceEntryPointTest.scala` for a concrete example.
This design is based on discussions with the IntelliJ IDEA Scala plugin
team. Thanks to Nikolay Tropin for the discussions and his PR
proposal (see #1011).
|
|\ \
| |/
|/| |
Value classes: add support for private[this] parameter
|
| | |
|
|\ \
| | |
| | | |
Fix #997
|
| | | |
|
| |/
| |
| |
| | |
First version. Fixes #997.
|
|\ \
| |/
|/| |
Change is volatile 2
|
| |
| |
| |
| | |
Lets one also pass named arguments to methods.
|
| | |
|
|\ \
| |/
|/| |
Neg tests check files for // error markers (rebased and updated)
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Implement auto tupling of function arguments
|
| |
| |
| |
| |
| |
| |
| | |
Was: corresponding parameter types "are compatible".
Now: corresponding parameter types "conform".
This avoids the inconsistency mentioned by @retronym in #897.
|
| |
| |
| |
| | |
Implements SIP #897.
|
|/
|
|
|
| |
1. Add errors in case of incorrect parameter;
2. Improvement to error message if value class is defined as a local class;
|
|\
| |
| | |
partest: run tests with -Xms64M -Xmx1024M instead of JVM defaults
|
| |
| |
| |
| |
| |
| | |
This is the same settings that scalac uses, this should help use avoid
using too much memory (the default on 64 bits Linux seems to be
-Xms248M -Xmx3938M).
|
|\ \
| | |
| | | |
Add test case for #645
|
| |/ |
|
|/
|
|
|
|
|
|
| |
An `C.this` term with erroneous class `C` will get a
`NoPrefix` type. A subsequent implicit search on this
crashed. This is fixed now.
Fixes #324.
|
| |
|
|
|
|
|
|
|
| |
Move logic from TypeOps to new file CheckRealizable.scala.
Also check realizable fields under strict mode.
Check at phase PostTyper rather than Typer to avoid cycles.
New tests for imports and deep paths.
|