aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/nested2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/nested2.scala')
-rw-r--r--tests/untried/pos/nested2.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/pos/nested2.scala b/tests/untried/pos/nested2.scala
new file mode 100644
index 000000000..421ea6fac
--- /dev/null
+++ b/tests/untried/pos/nested2.scala
@@ -0,0 +1,9 @@
+class C[A] {
+ class D[B] {
+ }
+}
+
+object Test {
+ val x = new C[String]
+ val y: C[String]#D[Int] = new x.D[Int]
+}