Skip to content

Commit 4a3113f

Browse files
committed
Use mapconserve in one case
1 parent d97d812 commit 4a3113f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ class Typer extends Namer
15551555
assert(ctx.reporter.errorsReported)
15561556
tree.withType(defn.AnyType)
15571557
val trees1 = tree.trees.mapconserve(typed(_, pt)(nestedCtx))
1558-
.map(ensureValueTypeOrWildcard)
1558+
.mapconserve(ensureValueTypeOrWildcard)
15591559
assignType(cpy.Alternative(tree)(trees1), trees1)
15601560
}
15611561

0 commit comments

Comments
 (0)