class X::Attribute::NoPackage does X::Comp { }
Compile time error thrown when an attribute is declared where it does
not make sense (for example in the mainline).
For example
has $.x;
Dies with
You cannot declare attribute '$.x' here; maybe you'd like a class or a role?
Methods
method name
method name(--> Str:D)
Returns the name of the attribute
See Also
class Exception
Anomalous event capable of interrupting normal control-flow
class X::Bind
Error due to binding to something that is not a variable or container
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.
Built with Podlite ā the markup and publishing tools behind this site.