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

EditButtonTip 2019-10-15

class X::Parameter::MultipleTypeConstraints

Compilation error due to a parameter with multiple type constraints

class X::Parameter::MultipleTypeConstraints does X::Comp { }
Code

Compile time error thrown when a parameter has multiple type constraints. This is not allowed in Raku.0.

Example:

sub f(Cool Real $x) { }
Code

dies with

Parameter $x may only have one prefix type constraint
Code

Methods§

method parameter§

Returns the name of the offensive parameter.