Camelia

X::Parameter::MultipleTypeConstraints

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

 
Compile time error thrown when a parameter has multiple type constraints. This is not allowed in Perl 6.0. Example:
    sub f(Cool Real $x) { }

 
produces
    Parameter $x may onle have one prefix type constraint
 
 

Methods

parameter

Returns the name of the offensive parameter.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: