Subject: | T & Dict[...] fail |
Defining composite subtypes using & and Dict fails in Dios 0.002004 and PPR 0.000009. This occurred with perl 5.24.0.
subtype Thing is Dict[foo, bar, ...];
subtype OtherThing is Thing & Dict[baz, bat...]; # syntax error at Your::Package line xyx, , near "& Dict["
Interestingly, this passes perl -wc:
subtype Thing is Dict[foo, bar, ...];
subtype OtherThing is Dict[baz, bat...] & Thing;
...but fails when another package imports it with:
Undefined subroutine &main::Thing called at Your/Package.pm line xyz.
--
-Jeff Ober