Skip to content

Commit 91ca4ba

Browse files
committed
Small polishing for clarity
1 parent afaf981 commit 91ca4ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ object ProtoTypes {
7979
* achieved by replacing expected type parameters with wildcards.
8080
*/
8181
def constrainResult(meth: Symbol, mt: Type, pt: Type)(implicit ctx: Context): Boolean =
82-
if (Inliner.isTransparentInlineable(meth))
83-
constrainResult(mt, wildApprox(pt)) || true
82+
if (Inliner.isTransparentInlineable(meth)) {
83+
constrainResult(mt, wildApprox(pt))
84+
true
85+
}
8486
else constrainResult(mt, pt)
8587
}
8688

0 commit comments

Comments
 (0)