Skip to content

Commit 56290a0

Browse files
committed
fix: adapt tests/neg-custom-args/captures/i15772.scala to the cc library
1 parent 3dc5a39 commit 56290a0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/neg-custom-args/captures/i15772.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- Error: tests/neg-custom-args/captures/i15772.scala:44:18 ------------------------------------------------------------
2+
44 | val filesList : List[File]^{io} = ??? // error
3+
| ^^^^^^^^^^^^^^^
4+
| List[File] is a pure type, it makes no sense to add a capture set to it
15
-- Error: tests/neg-custom-args/captures/i15772.scala:22:46 ------------------------------------------------------------
26
22 | val boxed1 : ((C^) => Unit) -> Unit = box1(c) // error
37
| ^^^^^^^

tests/neg-custom-args/captures/i15772.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ trait File:
4141

4242
def main(io: Any^) =
4343
val sayHello: ((File^{io}) => Unit) = (file: File^{io}) => file.write("Hello World!\r\n")
44-
val filesList : List[File]^{io} = ???
44+
val filesList : List[File]^{io} = ??? // error
4545
val x = () => filesList.foreach(sayHello)
4646
x: (() -> Unit) // error

0 commit comments

Comments
 (0)