Skip to content

Commit ff5a9cc

Browse files
committed
document X::Export::NameClash
1 parent 92a6deb commit ff5a9cc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

lib/X/Export/NameClash.pod

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
=begin pod
2+
3+
=TITLE class X::Export::NameClash
4+
5+
class X::Export::NameClash does X::Comp { }
6+
7+
Compile time error thrown when a symbol is exported twice.
8+
9+
For example
10+
11+
12+
sub f() is export { };
13+
{
14+
sub f() is export { }
15+
}
16+
17+
18+
dies with
19+
20+
===SORRY!===
21+
A symbol '&f' has already been exported
22+
23+
=head1 Methods
24+
25+
=head2 symbol
26+
27+
Returns the symbol that is exported twice.
28+
29+
=end pod

0 commit comments

Comments
 (0)