Skip to content

Commit 61dd887

Browse files
committed
Add tests for dotc.typer pickling/unpickling
1 parent 47da632 commit 61dd887

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/dotc/tests.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class tests extends CompilerTest {
5151
val toolsDir = dottyDir + "tools/"
5252
val dotcDir = toolsDir + "dotc/"
5353
val coreDir = dotcDir + "core/"
54+
val typerDir = dotcDir + "typer/"
5455

5556
@Test def pickle_pickleOK = compileDir(testsDir, "pickling", testPickling)
5657
// This directory doesn't exist anymore
@@ -240,6 +241,12 @@ class tests extends CompilerTest {
240241
"TypeApplications.scala", "TypeComparer.scala", "TypeErasure.scala", "TypeOps.scala",
241242
"TyperState.scala", "Uniques.scala"
242243
) map (coreDir + _), testPickling)
244+
@Test def tasty_typer = compileList("tasty_typer", List(
245+
"Applications.scala", "Checking.scala", "ConstFold.scala", "ErrorReporting.scala",
246+
"EtaExpansion.scala", "FrontEnd.scala", "Implicits.scala", "ImportInfo.scala",
247+
"Inferencing.scala", "Mode.scala", "ProtoTypes.scala", "ReTyper.scala", "RefChecks.scala",
248+
"TypeAssigner.scala", "Typer.scala", "VarianceChecker.scala", "Variances.scala"
249+
) map (typerDir + _), testPickling)
243250
@Test def tasty_tasty = compileDir(coreDir, "tasty", testPickling)
244251
@Test def tasty_classfile = compileDir(coreDir, "classfile", testPickling)
245252
@Test def tasty_unpickleScala2 = compileDir(coreDir, "unpickleScala2", testPickling)

0 commit comments

Comments
 (0)