diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-23 17:31:43 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-03-23 21:11:17 +0100 |
commit | 65455bbcaace514ea34a30a3fc102c8ecee16498 (patch) | |
tree | 0255ecba500bc6011652d9c6c6e80b128ae9b5a3 /tests/run/t5040.scala | |
parent | 6ab7c1da8987806e0e3cbc820781b6ef955c109b (diff) | |
download | dotty-65455bbcaace514ea34a30a3fc102c8ecee16498.tar.gz dotty-65455bbcaace514ea34a30a3fc102c8ecee16498.tar.bz2 dotty-65455bbcaace514ea34a30a3fc102c8ecee16498.zip |
Fix #2137: Create dummy companions for top-level objects without a real one
Previously, we sometimes ended up forcing a companion class symbol from
a previous run or from the classpath which lead to weird issues like in
`false-companion`. Even if we end up not forcing such a symbol, its
presence can still lead to issue: before this commit incremental
compilation of `dotty-compiler-bootstrapped` was broken because we
recorded a false dependency on the non-bootstrapped `dotty-compiler`
jar.
The added test is currently marked pending because it does not work with
JUnit (which doesn't handle separate compilation), only partest. I
didn't managed to get it to work right, and this won't be necessary once
our testing framework is overhauled by
https://github.com/lampepfl/dotty/pull/2125 anyway, so I'll just have to
remember to enable this test afterwards.
Diffstat (limited to 'tests/run/t5040.scala')
0 files changed, 0 insertions, 0 deletions