class X::Syntax::NoSelf does X::Syntax { }

Compile time error thrown when $.foo style calls are used where no invocant is available.

For example the code


in the program body throws the error

Variable $.meth used where no 'self' is available

because $.meth is short for $(self.meth), and there is no self available in mainline.


method variable§

Returns the variable/method call that caused the error.


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