scala/scala — pull request #1707 by retronym (2012-12-04 22:19:33+00:00)
Title: 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 tasks precluded the other.

Review by @adriaanm

One question: should this also be a forward reference?

```scala
class A {
case class B[A](s: String)
}

object X {
def foo {
val a = new A
val b = new a.B[c.type]("")
val c = ""
}
}
```