=begin pod :kind("Type") :subkind("class") :category("exception")

=TITLE class X::Inheritance::Unsupported

=SUBTITLE Compilation error due to inheriting from an ineligible type

    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

=for code :skip-test<compile time error>
enum A <Ax Ay>;
class B is A { };

dies with

=for code :lang<text>
===SORRY!===
A does not support inheritance, so B cannot inherit from it

=head1 Methods

=head2 method child-typename

The name of the type that tries to inherit.

=head2 method parent

The type object that the child tried to inherit from.

=end pod
