Skip to content

Commit df82a58

Browse files
mbovelodersky
andcommitted
Update compiler/src/dotty/tools/dotc/inlines/InlineReducer.scala
Co-authored-by: odersky <odersky@gmail.com>
1 parent 2769196 commit df82a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/inlines/InlineReducer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ class InlineReducer(inliner: Inliner)(using Context):
430430
// positions provided the types of these references are
431431
// realizable. See erased-inline-product.scala and
432432
// tests/neg/erased-inline-unrealizable-path.scala.
433-
if !inType || !(realizability(id.tpe.widen) eq Realizable) then
433+
if !inType || (realizability(id.tpe.widen) ne Realizable) then
434434
report.error(
435435
em"""${id.symbol} is unusable in ${ctx.owner} because it refers to an erased expression
436436
|in the selector of an inline match that reduces to

0 commit comments

Comments
 (0)