# New Ticket Created by  Brent Laabs 
# Please include the string:  [perl #124281]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124281 >


All values in $=pod[*]<config> are always Str, even if different types are
specified.  :!foo produces foo => "0", which is now true, so this could be
a bit of a problem.

The problem probably lies in Perl6::Pod::make_config, right around " # This
is a cheaty and evil hack."

Tests in S26-documentation/09-configuration.t are failing (but skipped):

=begin pod
    =for pod :number(42) :zebras :!sheep :feist<1 2 3 4>
=end pod

$r = $=pod[2].contents[0];
is $r.config<number>, 42;
#?rakudo skip 'non-string colonpair pod options'
{
  is $r.config<zebras>, True;
  is $r.config<sheep>, False;
  isa_ok $r.config<sheep>, Bool;
  isa_ok $r.config<feist>, List;
}

Reply via email to