Compilation error due to declaring an attribute in an ineligible package
does X::Comp
Compile time error, thrown when the compiler encounters an attribute declaration inside a package that does not support attributes.
For example
dies with
A have attributes, but you tried to declare '$.x'
method name(--> Str)
Returns the name of the attribute that triggered this error.
method package-kind(--> Str)
Returns the kind of package (package, module) that doesn't support attributes.