Skip to content

Commit

Permalink
Do not discard the result of constrainResult
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrf committed Jun 13, 2023
1 parent b6da8b7 commit 72bfe2b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 72bfe2b

Please sign in to comment.