Patrick R. Michaud wrote:
> Lines 46-52 of t/spec/S02-literals/pairs.t claims that
> the colonpair notation should produce a Bool instead of
> an Int:
>
> #?rakudo todo 'Adverbial pairs without should produce a Bool (not Int)'
> is f2(:a), "Bool", "':a' is a named";
> #?rakudo todo '.() sub calls'
> is(f2.(:a), "Bool", "in 'f2.(:a)', ':a' is a named");
> #?rakudo todo 'Adverbial pairs without should produce a Bool (not Int)'
> is $f2(:a), "Bool", "in '\$f2(:a)', ':a' is a named";
>
> However, S02 says that C<:a> corresponds to C<< a => 1 >> in
> fatarrow notation, which seems to argue that C<:a> should in
> fact have an Int value.
>
> Are the tests correct here, or am I reading too much into
> the synopsis description?
Most likely the tests are wrong.
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/