summaryrefslogtreecommitdiff
path: root/test/files/pos/t5390.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t5390.scala')
-rw-r--r--test/files/pos/t5390.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t5390.scala b/test/files/pos/t5390.scala
new file mode 100644
index 0000000000..36febb6a58
--- /dev/null
+++ b/test/files/pos/t5390.scala
@@ -0,0 +1,11 @@
+class A {
+ case class B[A](s: String)
+}
+
+object X {
+ def foo {
+ val a = new A
+ val b = new a.B[c.type]("") // not a forward reference
+ val c = ""
+ }
+} \ No newline at end of file