diff --git a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala index bde279c582e6..7e2505280583 100644 --- a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala +++ b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala @@ -114,7 +114,6 @@ object ProtoTypes { def constrainResult(meth: Symbol, mt: Type, pt: Type)(using Context): Boolean = if (Inlines.isInlineable(meth)) { constrainResult(mt, wildApprox(pt)) - true } else constrainResult(mt, pt) }