BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::Anon::Augment

Compilation error due to augmenting an anonymous package

class X::Anon::Augment does X::Comp { }
Code

Compile time error thrown when trying to augment an anonymous package.

For example

use MONKEY-TYPING;
augment class { }
Code

Dies with

Cannot augment anonymous class
Code

Methods§

method package-kind§

method package-kind returns Str:D
Code

Returns the kind of package (module, class, grammar, ...) that the code tried to augment.