class X::Anon::Augment does X::Comp { }

Compile time error thrown when trying to augment an anonymous package.

For example

use MONKEY-TYPING;
augment class { }

Dies with

Cannot augment anonymous class

Methods§

method package-kind§

method package-kind returns Str:D

Returns the kind of package (module, class, grammar, ...) that the code tried to augment.

Typegraph§

Type relations for X::Anon::Augment
raku-type-graph X::Anon::Augment X::Anon::Augment Exception Exception X::Anon::Augment->Exception X::Comp X::Comp X::Anon::Augment->X::Comp Mu Mu Any Any Any->Mu Exception->Any X::Comp->Exception

Expand chart above