aboutsummaryrefslogtreecommitdiff
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Add colon after method type, prefix def/val/var in REPLReto Hablützel2016-11-242-3/+12
|
* More info when unpickling failsMartin Odersky2016-11-242-8/+4
|
* Revert fix to #1701.Martin Odersky2016-11-242-6/+11
| | | | | | | | | | | Fengyun's original solution was the right one. We cannot NOT enter a package class into its parent scope, because reloading the denotation with .member will fail. So we need to enter it and compensate by adding a clause to `qualifies` in `typedIdent`. Weirdly, this was noted only when running tasty_bootstrap from a custom classpath in the new build setup. So it was pretty tricky to diagnose.
* Compile dotty library when bootstrappingMartin Odersky2016-11-241-2/+2
|
* make REPL tests look at DOTTY_EXTRA classpath entriesMartin Odersky2016-11-242-2/+4
|
* Honor -verbose in testsMartin Odersky2016-11-231-1/+2
| | | | | -verbose output was suppressed like all other non-error output in the tests. Now we don't filter output if -verbose is set.
* Get rid off custom classpath in entry point testsFelix Mulder2016-11-232-17/+2
|
* Make sure limitedThreads <= partest.threadsFelix Mulder2016-11-231-7/+10
|
* Update sequential tasks portionFelix Mulder2016-11-231-12/+21
|
* Make tests depend on environment variables for classpath jarsFelix Mulder2016-11-237-25/+61
| | | | | | | | | | | | sbt adds the correct jars to classpath and the tests depend on `packageAll` which creates these. When using something else however, these together with `sbt-interfaces` do not get propagated from the build. To remedy this and make the testing a bit more flexible, we now take these from `sys.props` instead, see `tests/dotty/Jars.scala`. If the props aren't defined we fall back to the ones default to sbt.
* increase threads to 2 in reduced threads casesFelix Mulder2016-11-221-3/+3
|
* TreeUnpickler: Workaround cyclic reference involving self-typeGuillaume Martres2016-11-221-2/+6
| | | | | | Special-casing like this is ugly, we should decide whether we want to avoid simplifications on all TypTrees and whether we want to do this just in unpickler or always. But I want to merge this PR first.
* Properly unpickle This trees without qualifierGuillaume Martres2016-11-221-1/+1
| | | | | Otherwise, they may end up with a qualifier, this manifested itself as a pickling difference in `tasty_tools`.
* Run some tests sequentially to avoid exhausting available memoryGuillaume Martres2016-11-221-0/+39
| | | | | | Some tests are run with "-Ytest-pickler" which uses a huge amount of memory. By running these tests one by one when no other test is running, we avoid running out of memory.
* Fix remaining tests with incorrect paths following moveGuillaume Martres2016-11-222-251/+250
|
* Move PatmatExhaustivityTest.scala in its proper placeGuillaume Martres2016-11-221-0/+90
|
* ExtractDependencies: correctly record inheritance on type aliasGuillaume Martres2016-11-221-1/+1
| | | | | | | | | | | | This fix the test "Extracted source dependencies from public members" which previously failed with: Set('G, 'E) is not equal to Set('B, 'E) (DependencySpecification.scala:34) `H` extends `G.T[Int]` which is an alias of `B`, so the `topLevelInheritanceDepndencies` of `H` should contain `B`, this was not the case before because we didn't dealias before looking for the top-level class of the dependency, so we ended up with `G`, the top-level class in which the alias `T` is contained.
* Do not force symbols of annotations when unpicklingGuillaume Martres2016-11-222-12/+18
| | | | | | | | | | | | This lead to stale symbol errors in `tasty_tools` because the symbol forcing was bringing forward symbols from the previous run before the corresponding symbols for the current run were created. We fix this by adding Annotations#deferredSymAndTree which behaves similarly to Annotations#deferred but take a by-name symbol. We also remove TreeUnpickler#LazyAnnotationReader which was apparently never used.
* Workaround last issue with -Ytest-picklerGuillaume Martres2016-11-221-1/+1
| | | | | | | We run checkNoPrivateLeaks in the unpickler since last commit and this is causing an issue related to privacy leaks. Give up and workaround it since we're going to redesign how we handle privacy leaks because of https://github.com/lampepfl/dotty/issues/1723 anyway.
* checkNoPrivateLeaks is now also done in TreeUnpicklerGuillaume Martres2016-11-222-0/+8
| | | | | This could be abstracted better but we'll end up replacing checkNoPrivateLeaks soon anyway due to https://github.com/lampepfl/dotty/issues/1723
* checkNoPrivateLeaks: handle defs in local classesGuillaume Martres2016-11-221-1/+1
| | | | | | The access boundary of a def in a local class is the owner of that class, previously it was set to the access boundary of the owner of the class instead.
* checkNoPrivateLeaks: handle references to companion membersGuillaume Martres2016-11-221-2/+16
| | | | | | | | | | | Previously Outer2#Inner#foo failed to compile with: ``` non-private method foo refers to private value x in its type signature ``` This should compile because the boundary of `foo` is `class Outer2` and the boundary of `x` is `object Outer2`. This commit fixes this by also considering the linked boundary in `checkNoPrivateLeaks`.
* TreeUnpickler: Add missing case for ENUMconstGuillaume Martres2016-11-221-0/+2
|
* -Ytest-pickler: avoid forcing anything when there's a differenceGuillaume Martres2016-11-221-1/+1
| | | | | This might cause a stale symbol exception and make it harder to find the source of the problem.
* -Ytest-pickler: homogenize template body output orderGuillaume Martres2016-11-221-1/+14
|
* TypedTreeCopier#Select: don't use unstable prefixesGuillaume Martres2016-11-221-1/+1
| | | | | | | | | This manifested itself as a pickling difference in tasty_tools Note that there are probably more issues in this method, in particular the old type is reused when `qualifier.tpe eq tree.qualifier.tpe` even if the `name` is different. But I'm only trying to get the tests to pass for now.
* Fix flags for default getters of constructorsGuillaume Martres2016-11-222-1/+9
| | | | This manifested itself as a pickling difference in tasty_tools
* Move `dottydoc` -> `doc-tool`Felix Mulder2016-11-229-0/+3343
|
* Remove unused examples dir, duplicate contained in tests/posFelix Mulder2016-11-222-3/+1
|
* Move compiler and compiler tests to compiler dirFelix Mulder2016-11-22325-0/+86404