add_parent
ErrorsCollection

add_parent

Synthesised documentation from type/Metamodel/MultipleInheritance type/Metamodel/EnumHOW

From type/Metamodel/MultipleInheritance

See Original text in context

method add_parent($obj$parent:$hides)

Adds $parent as a parent type. If $hides is set to a true value, the parent type is added as a hidden parent.

$parent must be a fully composed typed. Otherwise an exception of type X::Inheritance::NotComposed is thrown.

From type/Metamodel/EnumHOW

See Original text in context

method add_parent($obj$parent)

Sets the base type of an enum. This can only be used if no base type was passed to .new_type.