diff --git a/t/class/inherit.t b/t/class/inherit.t index 9af6b7ab9507b..53e6afc70732c 100644 --- a/t/class/inherit.t +++ b/t/class/inherit.t @@ -105,4 +105,12 @@ use A::B; EOS } +{ + # https://github.com/Perl/perl5/issues/20891 + class Test6A 1.23 {} + class Test6B 1.23 :isa(Test6A) {} + + pass('class declaration permits VERSION and :ATTRS...'); +} + done_testing;