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 Submethod Submethod Submethod->Routine Macro Macro Macro->Routine Method Method Method->Routine Sub Sub Sub->Routine Regex Regex Regex->Method

Expand chart above