We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d97d812 commit 4a3113fCopy full SHA for 4a3113f
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -1555,7 +1555,7 @@ class Typer extends Namer
1555
assert(ctx.reporter.errorsReported)
1556
tree.withType(defn.AnyType)
1557
val trees1 = tree.trees.mapconserve(typed(_, pt)(nestedCtx))
1558
- .map(ensureValueTypeOrWildcard)
+ .mapconserve(ensureValueTypeOrWildcard)
1559
assignType(cpy.Alternative(tree)(trees1), trees1)
1560
}
1561
0 commit comments