diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-12-16 11:37:58 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-12-16 11:39:38 +0100 |
commit | bbf0eb28fae4d4312518aa25de062f2323a0098c (patch) | |
tree | c06a169a4162aedd52ac72e58100a2c4885a4112 /test/files/pos | |
parent | 289a8820943a99c1c105aedddef44fb27a2dafc6 (diff) | |
download | scala-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/files/pos')
-rw-r--r-- | test/files/pos/t5390.scala | 11 |
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 |