Compilation error due to declaring an attribute outside of a package
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 ;
Dies with
You cannot declare attribute '$.x' here; maybe you'd like a a role?
method name(--> Str)
Returns the name of the attribute