summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-14 12:22:22 -0800
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-11-19 10:35:13 -0800
commit8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6 (patch)
tree8366b1206302cc46967282a15be2452fec26253b /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parent6cb08a1aabd915bbf3562c03d1b89af617eed81d (diff)
downloadscala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.tar.gz
scala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.tar.bz2
scala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.zip
Fix for SI-6357, cycle with value classes.
Don't force the owner info.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index f5d4df14fe..36edd46f25 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1289,7 +1289,8 @@ trait Namers extends MethodSynthesis {
if (clazz.isDerivedValueClass) {
log("Ensuring companion for derived value class " + name + " at " + cdef.pos.show)
clazz setFlag FINAL
- enclosingNamerWithScope(clazz.owner.info.decls).ensureCompanionObject(cdef)
+ // Don't force the owner's info lest we create cycles as in SI-6357.
+ enclosingNamerWithScope(clazz.owner.rawInfo.decls).ensureCompanionObject(cdef)
}
result