class X::Anon::Multi

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

Methods

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".

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.