Skip to content

Commit

Permalink
Enable test that failed in scala#18168
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jul 14, 2023
1 parent 4ba42dd commit bae1a9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/pos-custom-args/captures/i13816.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@ def foo7(i: Int)(using CanThrow[Ex1]): Unit throws Ex1 | Ex2 =
def foo8(i: Int)(using CanThrow[Ex2]): Unit throws Ex2 | Ex1 =
if i > 0 then throw new Ex1 else throw new Ex2

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

*/

def test(): Unit =
try
foo1(1)
Expand Down

0 comments on commit bae1a9a

Please sign in to comment.