Ticket #1790 (new bug)
r48965 changes Boolean :multi dispatch from 2.6.0 behavior
| Reported by: | pmichaud | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | 2.7.0 |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

