aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
Commit message (Collapse)AuthorAgeFilesLines
* fix #2166: unpickling of shared CaseDefliu fengyun2017-04-041-0/+5
|
* Move tests/tasty/* to tests/pickling/*Guillaume Martres2017-03-112-0/+11
| | | | | 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.
* Fix #2067: Compute defKind at Typer, not NamerMartin Odersky2017-03-081-0/+3
| | | | | | | It's hard to predict for defKind all the desugarings that can be applied to a definition. Better to do it once the desugarings have been applied. NoInit and PureInterface are both tested only after Typer, so it's OK to delay their initialization until regular Typer.
* remove invalid field in value classliu fengyun2016-11-241-1/+0
|
* checkNoPrivateLeaks is now also done in TreeUnpicklerGuillaume Martres2016-11-221-0/+9
| | | | | This could be abstracted better but we'll end up replacing checkNoPrivateLeaks soon anyway due to https://github.com/lampepfl/dotty/issues/1723
* Fix pickle_pickleOK testGuillaume Martres2016-11-222-0/+4
| | | | | | | It failed because two files in the same package compiled at the same time defined respectively a class Test and an object Test. I'm guessing this did not fail before because failure depends on the order of the files on the command line.
* Pickle and unpickle type treesMartin Odersky2016-11-163-0/+31
| | | | | | | Lots of other changes to make positions work out everywhere. One important change is that now trees can be shared, just as types can. This change improves memory requirements (a bit) and also makes positions in shared trees more robust.
* Adapt testsMartin Odersky2016-10-111-33/+0
|
* Fix SI-2712Martin Odersky2016-07-111-2/+2
| | | | | Allows partially instantiated types as type constrictors when inferring higher-kinded types.
* Rearrange pickle testsMartin Odersky2016-04-091-0/+45
| | | | | | | 1) Move passing test to pickling 2) Add test case for #1212 in pending 3) Disable annotations/internal in pickling tests. They lead to a stable symbol error which is explainable (modifiers are read before symbol is created).
* Fix unpickling of Java SeqLiteralsMartin Odersky2016-04-071-0/+4
| | | | | | | | | | Two problems were fixed: - isJava needs to look at function symbol, not its type (references to Java methods get normal MethodTypes not JavMethodTypes) - we also need to handle the case where the repeated argument is wrspped in a type ascription.
* Fix flags when unpickling setters of parameter accessorsMartin Odersky2016-04-071-0/+1
| | | | | | ParamAccessor is not a pickled flag. This is not a problem for normal parameter accessors which are pickled as PARAM fields. But setters of parameter accessors also need to have the flag set (and Deferred reset).
* Test casesMartin Odersky2016-04-072-0/+16
|
* Fix test casesMartin Odersky2016-03-111-1/+1
| | | | The test contained an error that was unvovered by the "Nothing is not Nullable" fix.
* Add test caseMartin Odersky2015-12-141-0/+26
|
* Disallow existentially bound parameters as type parametersMartin Odersky2015-12-061-4/+20
| | | | | | | Done in order to keep the basics as simple as possible. Treating existentially bound parameters as still instantiatable type parameters does not seem to add anything fundamental, and makes the type system less regular.
* Move failing test to pendingMartin Odersky2015-10-011-45/+0
| | | | | | | | | | There is a diff, but a minor one. Instead of (T? >: Int <: Int) we get (T? = Int) after pickling.
* Add spaces around + in tests.Dmitry Petrashko2015-04-091-2/+2
|
* Remove trailing spaces in Dotty tests.Dmitry Petrashko2015-04-094-28/+28
|
* Make all dotty tests end in newlineDmitry Petrashko2015-04-093-3/+3
|
* Pickling test reorgMartin Odersky2015-03-1821-0/+813
Move pickling tests into separate top-level test directory. That way they are not needlessly pos-tested before. Also, disable core tests for now - after rebasing we get a stale symbol error. Need to investigate that.