Skip to content

Commit 5195d70

Browse files
committed
Check the symbol for unary_!
1 parent 25c2021 commit 5195d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/main/scala/org/scalajs/nscplugin/GenJSCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6850,7 +6850,7 @@ abstract class GenJSCode[G <: Global with Singleton](val global: G)
68506850
dummy
68516851

68526852
// !x
6853-
case Apply(Select(t, nme.UNARY_!), Nil) =>
6853+
case Apply(Select(t, nme.UNARY_!), Nil) if cond.symbol == definitions.Boolean_not =>
68546854
val lt = genLinkTimeTree(t)
68556855
js.LinkTimeTree.BinaryOp(Boolean_==, lt, js.LinkTimeTree.BooleanConst(false))
68566856

0 commit comments

Comments
 (0)