Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
document X::Attribute::Package
  • Loading branch information
moritz committed Aug 21, 2012
1 parent d1af529 commit 9fed358
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/X/Attribute/Package.pod
@@ -0,0 +1,27 @@
=begin pod
=TITLE class X::Attribute::Package
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
module A { has $.x }
dies with
===SORRY!===
A module cannot have attributes
=head1 Methods
=head2 package-kind
method package-kind() returns Str:D
Returns the kind of package (package, module) that doesn't support attributes.
=end pod

0 comments on commit 9fed358

Please sign in to comment.