Skip to content

Commit 06a85e4

Browse files
committed
Fix exception and error message
1 parent aad8694 commit 06a85e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S03-operators/arith.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ All uses of a zero modulus or divisor should 'die', and the
319319
message => 'Divide by zero',
320320
'Division by zero with infix:<div> dies and is catchable with VRef variables';
321321

322-
throws_like { say 0 / 0 }, X::TypeCheck::Assignment,
323-
message => q[Type check failed in assignment to '$numerator'; expected 'Int' but got 'Failure'],
322+
throws_like { say 0 / 0 }, X::TypeCheck::Binding,
323+
message => q[Type check failed in binding; expected 'Int' but got 'Failure'],
324324
'Division by zero with infix:</> dies and is catchable (1)';
325325
throws_like { say 3 / 0 }, X::TypeCheck::Return,
326326
message => q[Type check failed for return value; expected 'Int' but got 'Failure'],

0 commit comments

Comments
 (0)