File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use Test ;
4
4
5
- plan 5 ;
5
+ plan 6 ;
6
6
7
7
# not really much of a test (no links to the spec either). Please improve, I only wrote what was required! --lue
8
8
@@ -13,5 +13,15 @@ eval_dies_ok 'pi("wtz")',"pi should not be defined to accept arguments either :)
13
13
dies_ok { EVAL (' a(3)' ) }, " this should die, no arguments defined" ;
14
14
15
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" ;
16
+ {
17
+ lives_ok { sub foo ($ where 1 --> Int ) { return 42 } },
18
+ " where clause combined with --> works" ;
19
+ lives_ok { sub foo ($ where 1 , $ y --> Int ) { return 42 } },
20
+ " where clause combined with --> works" ;
21
+ }
22
+
23
+ # RT #118875
24
+ {
25
+ lives_ok { sub ndr ($ r where ($ r ||= 10 ) > 0 && 1 ) { } },
26
+ ' where clause followed by (non-parenthesized) expression with "&&" in it does parse' ;
27
+ }
You can’t perform that action at this time.
0 commit comments