diff options
author | Martin Odersky <odersky@gmail.com> | 2016-02-05 16:58:14 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-05 16:59:05 +0100 |
commit | c7e71b81f0bf4ccf1f2d442e0425fe6f0dfe2c99 (patch) | |
tree | 4341967bbf5ef57494dadea1c72f610274b4afc2 /test/dotc/tests.scala | |
parent | 041d42f58eae860f88d6f1ea54305c1a7dca6c42 (diff) | |
download | dotty-c7e71b81f0bf4ccf1f2d442e0425fe6f0dfe2c99.tar.gz dotty-c7e71b81f0bf4ccf1f2d442e0425fe6f0dfe2c99.tar.bz2 dotty-c7e71b81f0bf4ccf1f2d442e0425fe6f0dfe2c99.zip |
Surive non-existing sourceModule in Scala2 pickled info.
It seems when unpickling nsc that some module classes come
without a source module. Survive this situation rather than
crashing. i859.scala is an example.
i859 compiles with the patch, but causes a deep subtype when unpickling.
Not sure whether scalac does the same.
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 2944d69e9..16917742d 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -103,6 +103,7 @@ class tests extends CompilerTest { @Test def pos_i871 = compileFile(posSpecialDir, "i871", scala2mode) @Test def pos_variancesConstr = compileFile(posSpecialDir, "variances-constr", scala2mode) + @Test def pos_859 = compileFile(posSpecialDir, "i859", scala2mode)(allowDeepSubtypes) @Test def new_all = compileFiles(newDir, twice) |