txt: ## package.md
  class X::Attribute::Package
  
  Compilation error due to declaring an attribute in an ineligible package
  
  ```raku
  class X::Attribute::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
  
  ```raku
  module A { has $.x }
  
  ```
  
  dies with
  
  ｢text｣ without highlighting
  
  ```
  
  
  ```
  
  A module cannot have attributes, but you tried to declare '$.x'
  
  
  ```
  
  
  ```
  
  # [Methods](#class_X::Attribute::Package "go to top of document")[§](#Methods "direct link")
  
  ## [method name](#class_X::Attribute::Package "go to top of document")[§](#method_name "direct link")
  
  ```raku
  method name(--> Str:D)
  ```
  
  Returns the name of the attribute that triggered this error.
  
  ## [method package-kind](#class_X::Attribute::Package "go to top of document")[§](#method_package-kind "direct link")
  
  ```raku
  method package-kind(--> Str:D)
  ```
  
  Returns the kind of package (package, module) that doesn't support attributes.
  