aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling/i982.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pickling/i982.scala')
-rw-r--r--tests/pickling/i982.scala8
1 files changed, 8 insertions, 0 deletions
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
+}