aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-03-11 15:44:07 +0100
committerGuillaume Martres <smarter@ubuntu.com>2017-03-11 15:45:46 +0100
commitc9c193202f00e6e01ae9a3e7ccbdac072f98fcc0 (patch)
treee74b28060f282f6940303c76f1677f60561cd861 /tests/pickling
parente28d8ee6819f39eb8e0479a53c63c241affe864c (diff)
downloaddotty-c9c193202f00e6e01ae9a3e7ccbdac072f98fcc0.tar.gz
dotty-c9c193202f00e6e01ae9a3e7ccbdac072f98fcc0.tar.bz2
dotty-c9c193202f00e6e01ae9a3e7ccbdac072f98fcc0.zip
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.
Diffstat (limited to 'tests/pickling')
-rw-r--r--tests/pickling/default-param-interface.scala3
-rw-r--r--tests/pickling/i982.scala8
2 files changed, 11 insertions, 0 deletions
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
+}