Skip to content

Commit

Permalink
Unit-test that class NAME VERSION :ATTRS syntax works
Browse files Browse the repository at this point in the history
  • Loading branch information
leonerd committed Sep 21, 2023
1 parent cd622ff commit 4e3e74d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/class/inherit.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4e3e74d

Please sign in to comment.