Skip to content

Commit 7006bea

Browse files
committed
Fix test
1 parent 0f3d3dd commit 7006bea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def box[T](v: T) : Observe[T] = {
1212
}
1313

1414
def main() : Int = {
15-
val boxed : Observe[{*} C] = box(newC)
15+
val boxed : Observe[{*} C] = box(newC) // error
1616
boxed(unsafe)
1717

1818
0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/try.scala:22:49 ------------------------------------------
2-
22 | val a = handle[Exception, CanThrow[Exception]] { // error !!! was for 2nd arg
2+
22 | val a = handle[Exception, CanThrow[Exception]] { // error
33
| ^
44
| Found: ? ({*} CT[Exception]) -> {*} CT[? >: box ? Exception <: box ? Exception]
55
| Required: CanThrow[Exception] => box {*} CT[Exception]

0 commit comments

Comments
 (0)