aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0085.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0085.scala')
-rw-r--r--tests/pos/t0085.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/t0085.scala b/tests/pos/t0085.scala
new file mode 100644
index 000000000..e018afb6e
--- /dev/null
+++ b/tests/pos/t0085.scala
@@ -0,0 +1,8 @@
+object A {
+ case class B(c: C) {
+ class C;
+ }
+ class C;
+ val b: B = new B(new C());
+ val c: C = b.c;
+}