Ticket #1040 (new bug)

Opened 12 years ago

Last modified 12 years ago

inplace math on subclasses failing (MMD/vtable)

Reported by: coke Owned by:
Priority: normal Milestone:
Component: none Version: trunk
Severity: high Keywords:
Cc: Language:
Patch status: Platform:

Description

Originally posted in  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)

Change History

follow-up: ↓ 4   Changed 12 years ago by pmichaud

I believe this may be a duplicate of TT #784. It's worth noting that as of r43985 the problem also manifests itself with the non-inplace ops. (Adding example to that ticket.)

Pm

  Changed 12 years ago by pmichaud

It may also be a duplicate of TT #562.

Pm

  Changed 12 years ago by bacek

For the record: this test is passing in current trunk (r45125). Can we resolve ticket?

in reply to: ↑ 1   Changed 12 years ago by coke

Replying to pmichaud:

I believe this may be a duplicate of TT #784. It's worth noting that as of r43985 the problem also manifests itself with the non-inplace ops. (Adding example to that ticket.) Pm

I don't see the second example on the ticket.

Replying to bacek:

For the record: this test is passing in current trunk (r45125). Can we resolve ticket?

If the tests are in t/ and passing, I don't see why not.

Note: See TracTickets for help on using tickets.