|
1 | 1 | -- Error: tests/neg-custom-args/captures/usingLogFile.scala:23:27 ------------------------------------------------------ |
2 | 2 | 23 | val later = usingLogFile { f => () => f.write(0) } // error |
3 | 3 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
4 | | - | {f, *} () -> Unit cannot be box-converted to box ? () -> Unit |
| 4 | + | {f} () -> Unit cannot be box-converted to box ? () -> Unit |
5 | 5 | | since one of their capture sets contains the root capability `*` |
6 | 6 | -- Error: tests/neg-custom-args/captures/usingLogFile.scala:29:9 ------------------------------------------------------- |
7 | 7 | 29 | later2.x() // error |
|
21 | 21 | -- Error: tests/neg-custom-args/captures/usingLogFile.scala:47:27 ------------------------------------------------------ |
22 | 22 | 47 | val later = usingLogFile { f => () => f.write(0) } // error |
23 | 23 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
24 | | - | {f, *} () -> Unit cannot be box-converted to box ? () -> Unit |
| 24 | + | {f} () -> Unit cannot be box-converted to box ? () -> Unit |
25 | 25 | | since one of their capture sets contains the root capability `*` |
26 | 26 | -- Error: tests/neg-custom-args/captures/usingLogFile.scala:62:33 ------------------------------------------------------ |
27 | 27 | 62 | val later = usingFile("out", f => (y: Int) => xs.foreach(x => f.write(x + y))) // error |
28 | 28 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
29 | | - | {f, *} (x$0: Int) -> Unit cannot be box-converted to box ? (x$0: Int) -> Unit |
| 29 | + | {f} (x$0: Int) -> Unit cannot be box-converted to box ? (x$0: Int) -> Unit |
30 | 30 | | since one of their capture sets contains the root capability `*` |
31 | 31 | -- Error: tests/neg-custom-args/captures/usingLogFile.scala:71:37 ------------------------------------------------------ |
32 | 32 | 71 | val later = usingFile("logfile", usingLogger(_, l => () => l.log("test"))) // error |
33 | 33 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
34 | | - | {_$1, *} () -> Unit cannot be box-converted to box ? () -> Unit |
| 34 | + | {_$1} () -> Unit cannot be box-converted to box ? () -> Unit |
35 | 35 | | since one of their capture sets contains the root capability `*` |
0 commit comments