summaryrefslogtreecommitdiff
path: root/test/files/buildmanager/namesdefaults/defparam.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix 'Symbol.companionModule' for the resident m...Iulian Dragos2010-12-221-0/+7
Fix 'Symbol.companionModule' for the resident mode compiler. It was confused by having modules being translated to lazy values. The direct consequence was a crash in the build manager when looking at a constructor using a default argument (compiled separately), but only on the second run. The resident compiler may run many times over, and symbols may be reused. Therefore, a module symbol that has been translated to a lazy val by refchecks is not guaranteed to have MODULE set on the next run (even before refcheck). Flags are not part of symbol history. Instead we rely on the fact that a synthetic lazy value must have been a module. review by odersky.