petdance/scratch — Issue #6: assign_pmc broken for pir subclasses?
Author: petdance
Created: 2011-11-01 05:26:43+00:00
State: open
Labels: bug, core, Pri-normal, Sev-medium

{{{
.sub main

$P1 = new 'Hash'
.local pmc undef
undef = new 'Undef'
assign $P1, undef
$S0 = typeof $P1
say $S0

$P1 = get_class 'Hash'
$P2 = subclass $P1, 'myHash'

$P1 = new 'myHash'
.local pmc undef
undef = new 'Undef'
assign $P1, undef
$S0 = typeof $P1
say $S0

.end
}}}

this prints:

{{{
Undef
myHash
}}}

but I expect it to print

{{{
Undef
Undef
}}}

- this is blocking partcl.