class X::Placeholder::Block does X::Comp {}

Thrown when a placeholder variable is used in a block that does not allow a signature.

For example

class A { $^foo }

dies with

Placeholder variable $^foo may not be used here because the surrounding block takes no signature

Methods§

method placeholder§

Returns the name of the (first) illegally used placeholder.

Typegraph§

Type relations for X::Placeholder::Block
raku-type-graph Block Block Code Code Block->Code Mu Mu Any Any Any->Mu Callable Callable Code->Any Code->Callable Routine Routine Routine->Block Method Method Method->Routine Sub Sub Sub->Routine Macro Macro Macro->Routine Submethod Submethod Submethod->Routine Regex Regex Regex->Method

Expand chart above