petdance/scratch — Issue #333: r48965 changes Boolean :multi dispatch from 2.6.0 behavior
Author: petdance
Created: 2011-11-01 04:25:43+00:00
State: open

The change of Boolean in r48965 changes multidispatch w/o a deprecation notice:

{{{
pmichaud@orange:/zip/parrot$ cat bool-1.pir
.sub 'main' :main
$P0 = new ['Boolean']
'foo'($P0)
.end

.sub 'foo' :multi(Integer)
say 'foo(Integer)'
.end

.sub 'foo' :multi(_)
say 'foo(_)'
.end

pmichaud@orange:/zip/parrot$ RELEASE_2_6_0/parrot bool-1.pir
foo(Integer)
pmichaud@orange:/zip/parrot$ trunk/parrot bool-1.pir
foo(_)
pmichaud@orange:/zip/parrot$ trunk/parrot_config revision
48981
pmichaud@orange:/zip/parrot$
}}}

This causes at least one Rakudo spectest to fail where it previously succeeded (S03-operators/short-circuit.t test 20).

Pm