scala/scala — pull request #1910 by retronym (2013-01-16 15:10:11+00:00)
Title: SI-6976 Fix value class separate compilation crasher.

We can't guarantee that the owner of the value class
is initialized, and if it isn't, the search for the
companion module will turn up bubkis.

This is a localized fix, but I'd be suprised if there
weren't other places that suffered from the same problem.

Wouldn't it be nicer to have something like:

// doesn't force info
sym.raw.info
sym.raw.companionModule

// forces info
sym.info
sym.companionModule

Review by @paulp.

/cc @JamesIry for consideration of SI-5954