petdance/scratch — Issue #463: assign_pmc broken for pir subclasses?
Author: petdance
Created: 2011-11-14 06:10:20+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.

Originally http://trac.parrot.org/parrot/ticket/203
Originally reported by coke (@coke)