diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-10-05 06:34:09 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-10-05 06:34:09 -0700 |
commit | 8443930ef427bd0f49cad8c305b1180d62ac503f (patch) | |
tree | 0848e64a29587ef3434f94b2afd6b0711f39533b /lib | |
parent | 2a2626d8512fc09c6ef077095e4e075978a5c2df (diff) | |
download | perl-8443930ef427bd0f49cad8c305b1180d62ac503f.tar.gz |
Deparse.t: Another to-do test for lex subs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/B/Deparse.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/B/Deparse.t b/lib/B/Deparse.t index 02ed877b7c..0ea080f6d6 100644 --- a/lib/B/Deparse.t +++ b/lib/B/Deparse.t @@ -1451,6 +1451,25 @@ no warnings 'experimental::lexical_subs'; state sub f {} print f(); #### +# SKIP ?$] < 5.017004 && "lexical subs not implemented on this Perl version" +# TODO unimplemented in B::Deparse; RT #116553 +# lexical subroutine scoping +# CONTEXT use feature 'lexical_subs'; no warnings 'experimental::lexical_subs'; +{ + { + my sub a { die; } + { + foo(); + my sub b; + b(); + main::b(); + my $b; + sub b { $b } + } + } + b(); +} +#### # Elements of %# should not be confused with $#{ array } () = ${#}{'foo'}; #### |