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

EditButtonTip 2019-08-04

class X::Augment::NoSuchType

Compilation error due to augmenting a non-existing type

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

Thrown when trying to augment a type which doesn't exist.

For example

use MONKEY-TYPING;
augment class NoSuch { }
Code

dies with

You tried to augment class NoSuch, but it does not exist
Code

Methods§

method package-kind§

method package-kind(--> Str:D)
Code

Returns the kind of package (class, grammar) that is being tried to augment

method package§

Returns the name that was tried to augment, but which doesn't exist.