Skip to content

Commit adee093

Browse files
committed
Fix tests on 5.22 and 5.24
Data::Checks also needs to export `experimental 'lexical_subs'` for `perl`s before 5.26. Also one test needs to have `experimental 'postderef'` for `perl`s before 5.24.
1 parent 4bb595e commit adee093

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Data/Checks.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sub import {
1818
strict->import::into($caller);
1919
warnings->import::into($caller);
2020
feature->import::into( $caller, ':5.22' );
21-
experimental->import::into( $caller, 'signatures' );
21+
experimental->import::into( $caller, 'signatures', 'lexical_subs' );
2222
Data::Checks::Parser->import::into( $caller, @args );
2323
}
2424

@@ -86,7 +86,7 @@ The statement C<use Data::Checks> is equivalent to:
8686
use strict;
8787
use warnings;
8888
use v5.22;
89-
use experimental 'signatures';
89+
use experimental 'signatures', 'lexical_subs';
9090
use Data::Checks::Parser; # this is the magic
9191
9292
=head1 CORE CHECKS

t/bug-state-error.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Test::Most;
44
use Data::Checks;
5+
use experimental qw(postderef);
56

67
explain <<'END';
78
There was a bug where feature 'state' wasn't always imported. Further, there

0 commit comments

Comments
 (0)