blob: d79a698d4ca86be9702448e986c3a27fa5916c6b (
plain) (
tree)
|
|
object Test extends dotty.runtime.LegacyApp {
val xs = List.tabulate(4)(List(_))
val i = xs.map(_.iterator).reduce { (a,b) =>
a.hasNext
a ++ b
}
val r1 = i.toList
val r2 = xs.flatten.toList
assert(r1 == r2, r1)
}
|