petdance/scratch — Issue #119: inplace math on subclasses failing (MMD/vtable)
Author: petdance
Created: 2011-11-01 05:41:17+00:00
State: open
Labels: bug, Pri-normal, Sev-high

Originally posted in [http://rt.perl.org/rt3/Ticket/Display.html?id=60036 RT] by pmichaud.
{{{
$ cat y.pir;./parrot y.pir
.sub main :main
$P1 = new 'Integer'
assign $P1, 4
$P1 *= 3
say $P1

$P0 = subclass 'Integer', 'MyInt'
$P1 = new 'MyInt'
assign $P1, 4
$P1 *= 3
say $P1

.end

12
Multiple Dispatch: No suitable candidate found for 'i_multiply_int',
with signature 'PI'
current instr.: 'main' pc 21 (y.pir:9)
}}}

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