Skip to content

Commit 008bf64

Browse files
committed
Merge pull request #452 from dotty-staging/fixTTM-structural-sharing-between-classes
Fix TreeTypeMap and mapSymbols to create a copy of decls for duplicated classes.
2 parents d6273d6 + 17476c2 commit 008bf64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ trait Symbols { this: Context =>
292292
val oinfo = original.info match {
293293
case ClassInfo(pre, _, parents, decls, selfInfo) =>
294294
assert(original.isClass)
295-
ClassInfo(pre, copy.asClass, parents, decls, selfInfo)
295+
ClassInfo(pre, copy.asClass, parents, decls.cloneScope, selfInfo)
296296
case oinfo => oinfo
297297
}
298298
copy.denot = odenot.copySymDenotation(

0 commit comments

Comments
 (0)