petdance/scratch — Issue #791: r48965 changes Boolean :multi dispatch from 2.6.0 behavior
Author: petdance
Created: 2011-11-14 06:01:53+00:00
State: open
Labels: bug, core, Pri-normal, Sev-medium

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

Originally http://trac.parrot.org/parrot/ticket/1790