Skip to content

Commit 72bfe2b

Browse files
committed
Do not discard the result of constrainResult
1 parent b6da8b7 commit 72bfe2b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ object ProtoTypes {
114114
def constrainResult(meth: Symbol, mt: Type, pt: Type)(using Context): Boolean =
115115
if (Inlines.isInlineable(meth)) {
116116
constrainResult(mt, wildApprox(pt))
117-
true
118117
}
119118
else constrainResult(mt, pt)
120119
}

0 commit comments

Comments
 (0)