Skip to content

Commit 71d8675

Browse files
committed
avoid compilation error
1 parent 2e2f05d commit 71d8675

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/Language/pragmas.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ Allow for some other language constructs that were deemed to be a trap that
8484
warranted a warning and/or an error in normal Perl 6 programming. Currently,
8585
only C<Perl5> is allowed, which disables a bunch of P5isms warnings and errors.
8686
87+
=begin code :skip-test<compilation error>
8788
sub abs() { say "foo" }
8889
abs;
8990
# Unsupported use of bare "abs"; in Perl 6 please use .abs if you meant
9091
# to call it as a method on $_, or use an explicit invocant or argument,
9192
# or use &abs to refer to the function as a noun
93+
=end code
9294
9395
In this case, providing an C<abs> sub that doesn't take any arguments, did
9496
not make the compilation error go away.

0 commit comments

Comments
 (0)