Skip to content

Commit b25116e

Browse files
committed
Add a couple of tests for RT #76096
1 parent f0033ca commit b25116e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

S06-other/misc.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 3;
5+
plan 5;
66

77
#not really much of a test (no links to the spec either). Please improve, I only wrote what was required! --lue
88

@@ -11,3 +11,7 @@ sub a () { my $a=4; }; #zero-arg sub to test the underlying problem #OK not us
1111
eval_dies_ok 'e("wtz")', "e should not be defined to accept arguments";
1212
eval_dies_ok 'pi("wtz")',"pi should not be defined to accept arguments either :) ";
1313
dies_ok { EVAL('a(3)') }, "this should die, no arguments defined";
14+
15+
# RT #76096
16+
lives_ok { sub foo($ where 1 --> Int) { return 42 } }, "where clause combined with --> works";
17+
lives_ok { sub foo($ where 1, $y --> Int) { return 42 } }, "where clause combined with --> works";

0 commit comments

Comments
 (0)