summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-12-16 11:37:58 +0100
committerJason Zaugg <jzaugg@gmail.com>2012-12-16 11:39:38 +0100
commitbbf0eb28fae4d4312518aa25de062f2323a0098c (patch)
treec06a169a4162aedd52ac72e58100a2c4885a4112 /test
parent289a8820943a99c1c105aedddef44fb27a2dafc6 (diff)
downloadscala-bbf0eb28fae4d4312518aa25de062f2323a0098c.tar.gz
scala-bbf0eb28fae4d4312518aa25de062f2323a0098c.tar.bz2
scala-bbf0eb28fae4d4312518aa25de062f2323a0098c.zip
Test showing the absence of a forward reference
These are only forbidden in terms, they are permitted in types.
Diffstat (limited to 'test')
-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