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.

Typegraph§

Type relations for X::Parameter::MultipleTypeConstraints
raku-type-graph X::Parameter::MultipleTypeConstraints X::Parameter::MultipleTypeConstraints Exception Exception X::Parameter::MultipleTypeConstraints->Exception X::Comp X::Comp X::Parameter::MultipleTypeConstraints->X::Comp Mu Mu Any Any Any->Mu Exception->Any X::Comp->Exception

Expand chart above