class X::Inheritance::Unsupported does X::Comp { }

Compile time error thrown when trying to inherit from a type that does not support inheritance (like a package or an enum).

For example

enum A <Ax Ay>;
class B is A { };

dies with

A does not support inheritanceso B cannot inherit from it


method child-typename§

The name of the type that tries to inherit.

method parent§

The type object that the child tried to inherit from.


Type relations for X::Inheritance::Unsupported
raku-type-graph X::Inheritance::Unsupported X::Inheritance::Unsupported Exception Exception X::Inheritance::Unsupported->Exception Mu Mu Any Any Any->Mu Exception->Any

Expand chart above