Skip to content

Commit bae1a9a

Browse files
committed
Enable test that failed in #18168
1 parent 4ba42dd commit bae1a9a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/pos-custom-args/captures/i13816.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,11 @@ def foo7(i: Int)(using CanThrow[Ex1]): Unit throws Ex1 | Ex2 =
3737
def foo8(i: Int)(using CanThrow[Ex2]): Unit throws Ex2 | Ex1 =
3838
if i > 0 then throw new Ex1 else throw new Ex2
3939

40-
/** Does not work yet since the type of the rhs is not hygienic
41-
4240
def foo9(i: Int): Unit throws Ex1 | Ex2 | Ex3 =
4341
if i > 0 then throw new Ex1
4442
else if i < 0 then throw new Ex2
4543
else throw new Ex3
4644

47-
*/
48-
4945
def test(): Unit =
5046
try
5147
foo1(1)

0 commit comments

Comments
 (0)