diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-12-04 22:45:46 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-12-04 23:19:51 +0100 |
commit | 289a8820943a99c1c105aedddef44fb27a2dafc6 (patch) | |
tree | 7c10756706ab7963cedae615e83d40c91ea34a2b /test/files/neg/t5390.scala | |
parent | fd57069a3a49de1757a518b573a0cd8cb98bbbd5 (diff) | |
download | scala-289a8820943a99c1c105aedddef44fb27a2dafc6.tar.gz scala-289a8820943a99c1c105aedddef44fb27a2dafc6.tar.bz2 scala-289a8820943a99c1c105aedddef44fb27a2dafc6.zip |
SI-5390 Detect forward reference of case class apply
Refchecks performs (among others) two tasks at once:
- detecting forward references
- translating `qual.Case(...)` to `new qual.Case(...)`
As is often the case with such multi-tasking tree traversals,
completion of one task precluded the other.
Diffstat (limited to 'test/files/neg/t5390.scala')
-rw-r--r-- | test/files/neg/t5390.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t5390.scala b/test/files/neg/t5390.scala new file mode 100644 index 0000000000..dd628f8851 --- /dev/null +++ b/test/files/neg/t5390.scala @@ -0,0 +1,10 @@ +class A { + object B { def apply(s: String) = 0} +} + +object X { + def foo { + val b = a.B("") + val a = new A + } +}
\ No newline at end of file |