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

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

Example:

sub f(Cool Real $x) { }

dies with

Parameter $x may only have one prefix type constraint

Methods§

method parameter§

Returns the name of the offensive parameter.