@@ -22,17 +22,14 @@ object Test {
22
22
xs.lazyZip(xs).lazyZip(xs)
23
23
.map( (x : Int , y : Int , z : Int ) => x + y + z ) // OK
24
24
25
- // 4. The single parameter map does not work.
25
+ // 4. The single parameter map works through an inserted conversion
26
26
xs.lazyZip(xs).lazyZip(xs)
27
- .map( (x : (Int , Int , Int )) => x match { case (x, y, z) => x + y + z }) // error
27
+ .map( (x : (Int , Int , Int )) => x match { case (x, y, z) => x + y + z }) // now also OK
28
28
29
- // 5. If we leave out the parameter type, we get a "Wrong number of parameters" error instead
29
+ // 5. If we leave out the parameter type, it now works as well.
30
30
xs.lazyZip(xs).lazyZip(xs)
31
- .map( x => x match { case (x, y, z) => x + y + z }) // error
31
+ .map( x => x match { case (x, y, z) => x + y + z }) // now also OK
32
32
33
- // This means that the following works in Dotty in normal mode, since a `withFilter`
34
- // is inserted. But it does no work under -strict. And it will not work in Scala 3.1.
35
- // The reason is that without -strict, the code below is mapped to (1), but with -strict
36
- // it is mapped to (5).
33
+ // This means that the following works in Dotty 3.0 as well as 3.x
37
34
for ((x, y, z) <- xs.lazyZip(xs).lazyZip(xs)) yield x + y + z
38
35
}
0 commit comments