We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0033ca commit b25116eCopy full SHA for b25116e
S06-other/misc.t
@@ -2,7 +2,7 @@ use v6;
2
3
use Test;
4
5
-plan 3;
+plan 5;
6
7
#not really much of a test (no links to the spec either). Please improve, I only wrote what was required! --lue
8
@@ -11,3 +11,7 @@ sub a () { my $a=4; }; #zero-arg sub to test the underlying problem #OK not us
11
eval_dies_ok 'e("wtz")', "e should not be defined to accept arguments";
12
eval_dies_ok 'pi("wtz")',"pi should not be defined to accept arguments either :) ";
13
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