Ticket #784 (closed bug: fixed)
subclassing breaks multi dispatch
Reported by: | coke | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | core | Version: | branch |
Severity: | medium | Keywords: | |
Cc: | Language: | tcl | |
Patch status: | Platform: |
Description
This code looks like it should print "1" twice...
.sub main :main .local pmc int_c int_c = get_class "Integer" .local pmc sub_c sub_c = subclass int_c, "MyInt" $P1 = new 'Integer' $P1 = 4 $P1 -= 3 say $P1 $P1 = new 'MyInt' $P1 = 4 $P1 -= 3 say $P1 .end
But dies on the subclass subtraction.
$ ./parrot foo.pir 1 Multiple Dispatch: No suitable candidate found for 'i_subtract_int', with signature 'PI' current instr.: 'main' pc 24 (foo.pir:14)
Change History
Note: See
TracTickets for help on using
tickets.