| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Using changeOwnerAfter would be more appropriate but currently fails
with an assertion in LambdaLift
|
|
|
|
|
|
|
|
| |
As reportd by dotty (same thing with showShop):
cyclic reference involving implicit value showCar
This happens when the right hand-side of value showCar's
definition involves an implicit search.
To avoid the error, give value showCar an explicit type.
|
| |
|
|
|
|
|
|
|
| |
`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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds two new project to the sbt build: dotty-library-bootstrapped
and dotty-compiler bootstrapped. These projects use the same source
files as dotty-library and dotty-compiler but are compiled using dotty
itself. The main usecase for this is that we can now run the JUnit
tests (which are _not_ just a subset of the tests run by partest, for
example the REPL tests are only run through JUnit) with
a bootstrapped compiler:
$ sbt
> publishLocal # Non-bootstrapped dotty needs to be published first
> dotty-compiler-bootstrapped/test
But this also allows one to experiment with a bootstrapped dotty much
more easily in general.
This revealed many issues in the compiler that are fixed in subsequent
commits in this PR.
|
|
|
|
|
| |
This is necessary to run the tests with the bootstrapped projects and is
just much better than hardcoding them anyway.
|
|
|
|
|
|
| |
If something needs to be fixed, fix it at the source. This prevented
dotty-compiler-bootstrapped from using the dotty-library-bootstrapped
clases instead of the dotty-library jar
|
|\
| |
| | |
Upgrade backend to fix Java interop for inner classes
|
|/
|
|
|
|
| |
The upgraded backend contains a single new PR:
https://github.com/DarkDimius/scala/pull/4 which fixes Java interop with
Dotty-emitted inner classes in objects.
|
|\
| |
| | |
Fix another NPE when compiling under -Yno-imports
|
| | |
|
|\|
| |
| | |
Fix NPE in Implicits
|
| |
| |
| |
| |
| | |
We got on NPE when compiling the collection strawman under -Yno-imports. We did not
preview that the contextual implicit scope stack could be empty.
|
|\|
| |
| | |
Adopt scala's scheme for root import hiding
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
scalac hides a root import from Predef if there is an eplicit Predef import.
We now do the same (previously we did this only if the overriding import undefined
something, using a `x => _` syntax). To avoid cycles and races one had to be very careful
not to force import symbols too early, so we now compare the name before the symbol proper.
All this is likely temporary - the comment of ImportInfo#unimported points to a different,
more systematic solution.
|
|\ \
| |/
|/| |
Improve whitelist infrastructure.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Now that that the blacklist is fully know
and is small enough, it will be simpler to
maintain only the blacklist.
|
| | |
|
|\ \
| | |
| | | |
Fix #1877: Add forwarders for primitive/generic mixins.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fix benchmarks and add multiple mini benchmark tests
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Partially fix Java interop for emitted inner classes
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The backend uses `rawname` to define the "inner name" of an InnerClass
entry in a classfile, this should be the simple name of the class before
any mangling takes place.
Fixing this allows Java code to reference dotty inner classes, except if
they're defined in objects which is still broken until
https://github.com/DarkDimius/scala/pull/4 is merged and a new backend
is published.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix #1891: Don't add redundant constraint
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Before adding a constraint, make sure there is no way
the two types are already in a subtype relation.
Adding redundant constraints is problematic because we
might introduce cycles. See i1891.scala for a test.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Stop emitting fields for inlined fields.
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
This reverts commit 63d68bf4d3cbac82f6d9faf19acd5589603a17ee.
|
|\ \ \ \
| | | | |
| | | | | |
Add dummy scala{-compiler,-reflect,p}
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
This is needed to make dotty-compiled projects work with sbt 0.13.13, the
other needed fix is https://github.com/sbt/sbt/pull/2897
|
|\ \ \ \
| | | | |
| | | | | |
Bump version from 0.1-SNAPSHOT to 0.1.1-SNAPSHOT
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
To match the specs in
https://github.com/lampepfl/dotty/blob/master/docs/syntax-summary.txt
all occurences of Id, ident or Ident in comments have been replaced
with the terminal `id`.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The following examples trigger the error message:
val x: Foo.this = ???
// Also triggers the error:
import foo.this
// Additionally, also slays the compiler
type X = Foo.this.type
|
|\ \ \ \
| | | | |
| | | | | |
Fix #1867: Set position of empty refined types
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Fix dummy scala-library
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
To be useful, the dummy scala-library:
- needs to be published with crossPaths off (the "_2.11" path of the
artefact name), like the real scala-library
- should depend on dotty-library and not just scala-library, since this
is what is needed to compile dotty programs
|
|\ \ \ \
| | | | |
| | | | | |
Fix #1865: Compute outer path at right phase
|