class X::Signature::Placeholder

Compilation error due to placeholders in a block with a signature
class X::Signature::Placeholder does X::Comp { }

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

For example

sub f() { $^x }

dies with

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

Methods

method placeholder

method placeholder(--> Str:D)

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

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.