From bbf0eb28fae4d4312518aa25de062f2323a0098c Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 16 Dec 2012 11:37:58 +0100 Subject: Test showing the absence of a forward reference These are only forbidden in terms, they are permitted in types. --- test/files/pos/t5390.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/pos/t5390.scala 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 -- cgit v1.2.3