File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
tests/neg-custom-args/captures Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 40
40
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:32:24 ----------------------------------------
41
41
32 | val z2 = h[() -> Cap](() => x) // error
42
42
| ^^^^^^^
43
- | Found: {x} () -> Cap
43
+ | Found: {x} () -> {*} C
44
44
| Required: () -> box {*} C
45
45
|
46
46
| longer explanation available when compiling with `-explain`
47
47
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:33:5 -----------------------------------------
48
48
33 | (() => C()) // error
49
49
| ^^^^^^^^^
50
- | Found: ? () -> Cap
50
+ | Found: ? () -> {*} C
51
51
| Required: () -> box {*} C
52
52
|
53
53
| longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 8
8
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/curried-simplified.scala:9:28 ----------------------------
9
9
9 | def y2: () -> () => Int = x2 // error
10
10
| ^^
11
- | Found: {x} () -> () = > Int
11
+ | Found: {x} () -> {*} () - > Int
12
12
| Required: () -> () => Int
13
13
|
14
14
| longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 8
8
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/eta.scala:6:14 -------------------------------------------
9
9
6 | bar( () => f ) // error
10
10
| ^^^^^^^
11
- | Found: {f} () -> box {f} Proc
11
+ | Found: {f} () -> box {f} () -> Unit
12
12
| Required: () -> box ? () -> Unit
13
13
|
14
14
| longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 1
1
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:23:49 ------------------------------------------
2
2
23 | val a = handle[Exception, CanThrow[Exception]] { // error
3
3
| ^
4
- | Found: ? CanThrow [Exception] -> {*} CT[? >: ? Exception <: ? Exception]
4
+ | Found: ? ({*} CT [Exception]) -> {*} CT[? >: ? Exception <: ? Exception]
5
5
| Required: CanThrow[Exception] => box {*} CT[Exception]
6
6
24 | (x: CanThrow[Exception]) => x
7
7
25 | }{
10
10
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:29:43 ------------------------------------------
11
11
29 | val b = handle[Exception, () -> Nothing] { // error
12
12
| ^
13
- | Found: ? (x: CanThrow [Exception]) -> {x} () -> ? Nothing
13
+ | Found: ? (x: {*} CT [Exception]) -> {x} () -> ? Nothing
14
14
| Required: CanThrow[Exception] => () -> Nothing
15
15
30 | (x: CanThrow[Exception]) => () => raise(new Exception)(using x)
16
16
31 | } {
You can’t perform that action at this time.
0 commit comments