class X::Syntax::Self::WithoutObject does X::Syntax { }

Syntax error thrown when self is referenced in a place where no invocant is available.

For example

self;

outside a class or role declaration dies with

===SORRY!===
'self' used where no object is available

Typegraph§

Type relations for X::Syntax::Self::WithoutObject
raku-type-graph X::Syntax::Self::WithoutObject X::Syntax::Self::WithoutObject Exception Exception X::Syntax::Self::WithoutObject->Exception X::Syntax X::Syntax X::Syntax::Self::WithoutObject->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