Subject: | Unable to find Object::Pad::UNIVERSAL when redeclaring class |
Another one, variation of the child-cannot-find-slots case:
$ perl -le'use Object::Pad; class Parent { has $thing = 2; } package Child; Object::Pad->import_into("Child"); eval "package Child; class Child extends Parent;"; class Child; has $other = 3; method other { return $other } print Child->new->other'
Can't locate object method "INITSLOTS" via package "Object::Pad::UNIVERSAL" at lib/Object/Pad.xs line 442.