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

EditButtonTip 2024-05-18

class X::Syntax::Signature::InvocantMarker

Compilation error due to a misplaced invocant marker in a signature

class X::Syntax::Signature::InvocantMarker does X::Syntax { }
Code

Syntax error when the invocant in a signature is anywhere else than after the first parameter.

For example

:($a, $b: $c);
Code

dies with

===SORRY!===
Can only use : as invocant marker in a signature after the first parameter
Code

See also: Signature.