summaryrefslogtreecommitdiff
path: root/test/files/run/trait_fields_repl.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/trait_fields_repl.check')
-rw-r--r--test/files/run/trait_fields_repl.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/trait_fields_repl.check b/test/files/run/trait_fields_repl.check
new file mode 100644
index 0000000000..d03a565c7b
--- /dev/null
+++ b/test/files/run/trait_fields_repl.check
@@ -0,0 +1,11 @@
+
+scala> trait B { val y = "a" }
+defined trait B
+
+scala> trait T extends B { val x: y.type = y }
+defined trait T
+
+scala> println((new T{}).x)
+a
+
+scala> :quit