Skip to content

Commit ad3a11a

Browse files
committed
Fix copy-paste error
1 parent 37f3bad commit ad3a11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/VCElideAllocations.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VCElideAllocations extends MiniPhase with IdentityDenotTransformer {
2929
case BinaryOp(NewWithArgs(tp1, List(u1)), op, NewWithArgs(tp2, List(u2)))
3030
if (tp1 eq tp2) && (op eq defn.Any_==) &&
3131
isDerivedValueClass(tp1.typeSymbol) &&
32-
!defn.Any_equals.overridingSymbol(cls).exists =>
32+
!defn.Any_equals.overridingSymbol(tp1.typeSymbol.asClass).exists =>
3333
// == is overloaded in primitive classes
3434
u1.equal(u2)
3535

0 commit comments

Comments
 (0)