We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1af529 commit 9fed358Copy full SHA for 9fed358
lib/X/Attribute/Package.pod
@@ -0,0 +1,27 @@
1
+=begin pod
2
+
3
+=TITLE class X::Attribute::Package
4
5
+ class X::Attribute::Package does X::Comp { }
6
7
+Compile time error, thrown when the compiler encounters an attribute
8
+declaration inside a package that does not support attributes.
9
10
+For example
11
12
+ module A { has $.x }
13
14
+dies with
15
16
+ ===SORRY!===
17
+ A module cannot have attributes
18
19
+=head1 Methods
20
21
+=head2 package-kind
22
23
+ method package-kind() returns Str:D
24
25
+Returns the kind of package (package, module) that doesn't support attributes.
26
27
+=end pod
0 commit comments