We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dcca2 commit c35bc53Copy full SHA for c35bc53
compiler/src/dotty/tools/dotc/inlines/InlineReducer.scala
@@ -430,7 +430,7 @@ class InlineReducer(inliner: Inliner)(using Context):
430
// positions provided the types of these references are
431
// realizable. See erased-inline-product.scala and
432
// tests/neg/erased-inline-unrealizable-path.scala.
433
- if !inType || !(realizability(id.tpe.widen) eq Realizable) then
+ if !inType || (realizability(id.tpe.widen) ne Realizable) then
434
report.error(
435
em"""${id.symbol} is unusable in ${ctx.owner} because it refers to an erased expression
436
|in the selector of an inline match that reduces to
0 commit comments