Skip to content

Commit 21729f3

Browse files
committed
Fix an erroneous comparison of RefinedType with Type.
Discovered by new warnings emitted by the 2.13.0 compiler, yeah!
1 parent 2e2e2bc commit 21729f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linker/shared/src/main/scala/org/scalajs/linker/frontend/optimizer/OptimizerCore.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3095,7 +3095,7 @@ private[optimizer] abstract class OptimizerCore(config: CommonPhaseConfig) {
30953095
PreTransLit(StringLiteral(s1 + s2))
30963096
case (_, PreTransLit(StringLiteral(""))) =>
30973097
foldBinaryOp(op, rhs1, lhs1)
3098-
case (PreTransLit(StringLiteral("")), _) if rhs1.tpe == StringType =>
3098+
case (PreTransLit(StringLiteral("")), _) if rhs1.tpe.base == StringType =>
30993099
rhs1
31003100
case (_, PreTransBinaryOp(String_+, rl, rr)) =>
31013101
foldBinaryOp(String_+, PreTransBinaryOp(String_+, lhs1, rl), rr)

0 commit comments

Comments
 (0)