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

EditButtonTip 2019-08-04

class X::Attribute::Undeclared

Compilation error due to an undeclared attribute

class X::Attribute::Undeclared is X::Undeclared { }
Code

Thrown when code refers to an attribute that has not been declared.

For example the code

class A { method m { $!notthere } }
Code

Produces the error

Attribute $!notthere not declared in class A
Code

Methods§

method package-kind§

Returns the kind of package the attribute was used in (for example class, grammar)

method package-name§

Returns the name of the package in which the offensive attribute reference was performed.