From c9c193202f00e6e01ae9a3e7ccbdac072f98fcc0 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sat, 11 Mar 2017 15:44:07 +0100 Subject: Move tests/tasty/* to tests/pickling/* These two directories were tested using the same flags, but tests/tasty compiled all of its files at once which is usually not what is intended. --- compiler/test/dotc/tests.scala | 1 - tests/pickling/default-param-interface.scala | 3 +++ tests/pickling/i982.scala | 8 ++++++++ tests/tasty/default-param-interface.scala | 3 --- tests/tasty/i982.scala | 8 -------- 5 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 tests/pickling/default-param-interface.scala create mode 100644 tests/pickling/i982.scala delete mode 100644 tests/tasty/default-param-interface.scala delete mode 100644 tests/tasty/i982.scala diff --git a/compiler/test/dotc/tests.scala b/compiler/test/dotc/tests.scala index a720f1294..0c4668a89 100644 --- a/compiler/test/dotc/tests.scala +++ b/compiler/test/dotc/tests.scala @@ -355,7 +355,6 @@ class tests extends CompilerTest { @Test def tasty_dotc_util = compileDir(dotcDir, "util", testPickling) @Test def tasty_tools_io = compileDir(toolsDir, "io", testPickling) - @Test def tasty_tests = compileDir(testsDir, "tasty", testPickling) @Test def tasty_bootstrap = { val logging = if (false) List("-Ylog-classpath", "-verbose") else Nil diff --git a/tests/pickling/default-param-interface.scala b/tests/pickling/default-param-interface.scala new file mode 100644 index 000000000..919f4b627 --- /dev/null +++ b/tests/pickling/default-param-interface.scala @@ -0,0 +1,3 @@ +trait Foo { + def newName(prefix: String = "foo"): String +} diff --git a/tests/pickling/i982.scala b/tests/pickling/i982.scala new file mode 100644 index 000000000..838b250d9 --- /dev/null +++ b/tests/pickling/i982.scala @@ -0,0 +1,8 @@ +trait Z { + type Q + def test: Q +} +class X(val x: Z) +class Y(x: Z) extends X(x) { + x.test +} diff --git a/tests/tasty/default-param-interface.scala b/tests/tasty/default-param-interface.scala deleted file mode 100644 index 919f4b627..000000000 --- a/tests/tasty/default-param-interface.scala +++ /dev/null @@ -1,3 +0,0 @@ -trait Foo { - def newName(prefix: String = "foo"): String -} diff --git a/tests/tasty/i982.scala b/tests/tasty/i982.scala deleted file mode 100644 index 838b250d9..000000000 --- a/tests/tasty/i982.scala +++ /dev/null @@ -1,8 +0,0 @@ -trait Z { - type Q - def test: Q -} -class X(val x: Z) -class Y(x: Z) extends X(x) { - x.test -} -- cgit v1.2.3