class X::Anon::Multi
Error ReportCollection examples

Compilation error due to declaring an anonymous multi

class X::Anon::Multi does X::Comp { }

Compile time error thrown when an anonymous multi is being declared.

For example

multi method () { }

dies with

Cannot put multi on anonymous method


method multiness

method multiness(--> Str:D)

Returns a string describing the multiness that the original code used, for example "multi" or "proto".

method routine-type

method routine-type(--> Str:D)

Returns a string describing the type of routine that was declared, for example "sub" or "method".