Skip to content

Commit bd8136d

Browse files
committed
Simplify function call
1 parent d6c22d0 commit bd8136d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class CheckCaptures extends Recheck, SymTransformer:
311311
val expected = openClosures
312312
.find(_._1 == owner)
313313
.map(_._2)
314-
.getOrElse(owner.info.toFunctionType(isJava = false))
314+
.getOrElse(owner.info.toFunctionType())
315315
i"\nof an enclosing function literal with expected type $expected"
316316
else
317317
i"\nof the enclosing ${owner.showLocated}"

0 commit comments

Comments
 (0)