Skip to content

Commit daf6766

Browse files
committed
update test check files
1 parent 023283d commit daf6766

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:32:24 ----------------------------------------
4141
32 | val z2 = h[() -> Cap](() => x) // error
4242
| ^^^^^^^
43-
| Found: {x} () -> Cap
43+
| Found: {x} () -> {*} C
4444
| Required: () -> box {*} C
4545
|
4646
| longer explanation available when compiling with `-explain`
4747
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:33:5 -----------------------------------------
4848
33 | (() => C()) // error
4949
| ^^^^^^^^^
50-
| Found: ? () -> Cap
50+
| Found: ? () -> {*} C
5151
| Required: () -> box {*} C
5252
|
5353
| longer explanation available when compiling with `-explain`

tests/neg-custom-args/captures/curried-simplified.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/curried-simplified.scala:9:28 ----------------------------
99
9 | def y2: () -> () => Int = x2 // error
1010
| ^^
11-
| Found: {x} () -> () => Int
11+
| Found: {x} () -> {*} () -> Int
1212
| Required: () -> () => Int
1313
|
1414
| longer explanation available when compiling with `-explain`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/eta.scala:6:14 -------------------------------------------
99
6 | bar( () => f ) // error
1010
| ^^^^^^^
11-
| Found: {f} () -> box {f} Proc
11+
| Found: {f} () -> box {f} () -> Unit
1212
| Required: () -> box ? () -> Unit
1313
|
1414
| longer explanation available when compiling with `-explain`

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:23:49 ------------------------------------------
22
23 | val a = handle[Exception, CanThrow[Exception]] { // error
33
| ^
4-
| Found: ? CanThrow[Exception] -> {*} CT[? >: ? Exception <: ? Exception]
4+
| Found: ? ({*} CT[Exception]) -> {*} CT[? >: ? Exception <: ? Exception]
55
| Required: CanThrow[Exception] => box {*} CT[Exception]
66
24 | (x: CanThrow[Exception]) => x
77
25 | }{
@@ -10,7 +10,7 @@
1010
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:29:43 ------------------------------------------
1111
29 | val b = handle[Exception, () -> Nothing] { // error
1212
| ^
13-
| Found: ? (x: CanThrow[Exception]) -> {x} () -> ? Nothing
13+
| Found: ? (x: {*} CT[Exception]) -> {x} () -> ? Nothing
1414
| Required: CanThrow[Exception] => () -> Nothing
1515
30 | (x: CanThrow[Exception]) => () => raise(new Exception)(using x)
1616
31 | } {

0 commit comments

Comments
 (0)