class X::Syntax::Augment::WithoutMonkeyTyping does X::Syntax { }

Compile time error thrown when augment is used without use MONKEY-TYPING.

Since augment is considered a rather unsafe and impolite action, you have to pre-declare your intent with the use MONKEY-TYPING; pragma.

If you don't do that, like here

augment class Int { };

you get the error

augment not allowed without 'use MONKEY-TYPING'


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

Expand chart above