| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| | |
Fix Tasty positions
|
| |
| |
| |
| |
| |
| |
| |
| | |
Inlined trees should be preserved by pickling so that we keep
positions accurate.
With that change now all tasty tests are tested for position
accuracy.
|
| |
| |
| |
| |
| | |
With that change, all files tested in pickleOK have the
same positions before and after pickling.
|
| | |
|
|/ |
|
|\
| |
| | |
Small fixes to some warnings/comment typos
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
Implement inline
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Drop @dotty.annotation.inline. This will inline all
@inline marked methods in Scala for which a body is known
(i.e. that are either compiled in the same run or have Tasty
trees available).
Option -Yno-inline suppresses inlining. This is needed for
the moment because some @inline methods access private members
or members that are otherwise inaccessible at the call-site.
Also fixes some problems in Inliner
- make sure type arguments to inline calls re fully defined
- don't forget recursive calls in typeMap
- don't forget positions in treeMap
- drop dead code dealing with outer.
|
|\ \
| |/
|/| |
[WIP] fix encoding issues
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
rename test/pos/valueclasses to pos_valueclasses
tests/pos/valueclasses generates a valueclasses.flags
file in /tests/partest-generated/pos that conflicts
with the valueClasses.flags file that
tests/neg/valueClasses.scala tries to create
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
Arrange its sub-elements so that they appear strictly left to right.
|
|\
| |
| | |
Fixes of GADTs and test recategorization.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Passing tests from pending/pos go in pos. Some others
go in diabled/not-testable. These are tests that require
a compilation order which we cannot yet do with our unit
testing framework. Compiling them alltogether (as is now
doen in junit) does not work either for them because they
contain a duplicate class.
|
|/ |
|
|\
| |
| | |
Add dottydoc
|
| | |
|
|/
|
|
| |
Needs to be done in pos-special because junit tests do not recognize _1, _2.
|
|
|
|
|
|
| |
Needs to read several input lines at once.
Enables repl test of new error messages.
|
|\
| |
| | |
partest: Enable separate compilation
|
| |
| |
| |
| |
| |
| |
| |
| | |
Some java tests require the scala-library to be present on the
classpath, this fixes tests/pos/java-interop/{t1186, t1235, t1254,
t1642}.
Also correctly redirect the output of javac so that it will be displayed
by partest --verbose
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
partest can separately compile files based on their suffix (_1, _2,
...), it turns out that this feature was never enabled in the dotty
version of partest and no one noticed (it prints warnings in
./tests/partest-generated/gen.log which no one reads), tests with *.java
files should be compiled both with javac and dotty, but compiling with
javac was also disabled.
Enabling this revealed some latent bugs that will be fixed in the next
few commits.
|
|/
|
|
|
| |
Dotty uses ammonite.terminal since April (53bd25f) which replaces JLine.
There is no reason to keep it anymore.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Faced with recursive dependencies through self types, we might have
to apply `normalizeToClassRefs` to a class P with a parent that is not
yet initialized (witnessed by P's parents being Nil). In that case
we should still execute forwardRefs on P, but we have to
wait in a suspension until P is initialized.
This avoids the problem raised in #1401. I am still not quite sure
why forwardRefs is needed, but it seems that asSeenFrom alone is not
enough to track the dependencies in this case.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Interestingly, adding
mutable.BufferLike
to the whitelist succeeds under junit but fails under partest. Unfortunately I can't see
any output in the log indicating what went wrong. I only see this:
!! 306 - pos/compileStdLib [compilation failed]
# Failed test paths (this command will update checkfiles)
test/partest --update-check \
/Users/odersky/workspace/dotty/tests/partest-generated/pos/compileStdLib
|
|
|
|
| |
This should have been done in a PR that was merged before.
|
|
|
|
| |
Error messages were suppressed so far, now get printed.
|
|\
| |
| | |
Implement -Yno-predef and -Yno-imports
|
| |
| |
| |
| |
| |
| | |
* Implement flags -Yno-predef and -Yno-imports
* Add unit tests for both
|
|\ \
| | |
| | | |
Direct representation of higher-kinded types
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We cannot handle such types in general. So we now check that a hk application
C[args]
where some of the arguments are wildcards does not have as a supertype
a hk application
([X] -> B)[args]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- compileMixed failed because there was a cycle between immutable.Seq (compiled) and
parallel.ParSeq (loaded from classfile). Inspection of the completion log (turn completions
Printer on) and the stack trace showed that there's nothing we can do here. The old hk scheme
did not go into the cycle because it did not force an unrelated type. I believe with enough
tweaking we would also hva egotten a cycle in the old hk scheme.
The test is "fixed" by adding parallel.ParSeq to the files to compile.
- Disable named parameter tests
Those tests do not work yet with the revised hk scheme.
Before trying to fix this, we should first decide what parts of
named parameters should be kept.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| | |
partest adds a warning in a comment at the beginning of source files
that it copies, but this means that every line number displayed in a
stack trace is offset by 6. We can workaround this by making the warning
a single line with no newline at the end.
|
|/ |
|
|
|
|
|
| |
Previously we returned an empty Reporter with no errors so partest
reported the test as a success.
|