From c7e71b81f0bf4ccf1f2d442e0425fe6f0dfe2c99 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 5 Feb 2016 16:58:14 +0100 Subject: 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. --- test/dotc/tests.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'test/dotc/tests.scala') 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) -- cgit v1.2.3