BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Signature::Placeholder

Compilation error due to placeholders in a block with a signature

class X::Signature::Placeholder does X::Comp { }
Code

Compile time error thrown when a block has both an explicit signature and placeholder parameters.

For example

sub f() { $^x }
Code

dies with

===SORRY!===
Placeholder variable '$^x' cannot override existing signature
Code

Methods§

method placeholder§

method placeholder(--> Str:D)
Code

Returns the name of a placeholder that was used in a block that already had a signature.