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 4040-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/capt1.scala:32:24 ----------------------------------------
414132 | 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 -----------------------------------------
484833 | (() => C()) // error
4949 | ^^^^^^^^^
50- | Found: ? () -> Cap
50+ | Found: ? () -> {*} C
5151 | Required: () -> box {*} C
5252 |
5353 | longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 88-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/curried-simplified.scala:9:28 ----------------------------
999 | 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`
Original file line number Diff line number Diff line change 88-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/eta.scala:6:14 -------------------------------------------
996 | 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`
Original file line number Diff line number Diff line change 11-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:23:49 ------------------------------------------
2223 | 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]
6624 | (x: CanThrow[Exception]) => x
7725 | }{
1010-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:29:43 ------------------------------------------
111129 | 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
151530 | (x: CanThrow[Exception]) => () => raise(new Exception)(using x)
161631 | } {
You can’t perform that action at this time.
0 commit comments