Skip to content

Commit

Permalink
avoid compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jun 8, 2018
1 parent 2e2f05d commit 71d8675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/Language/pragmas.pod6
Expand Up @@ -84,11 +84,13 @@ Allow for some other language constructs that were deemed to be a trap that
warranted a warning and/or an error in normal Perl 6 programming. Currently,
only C<Perl5> is allowed, which disables a bunch of P5isms warnings and errors.
=begin code :skip-test<compilation error>
sub abs() { say "foo" }
abs;
# Unsupported use of bare "abs"; in Perl 6 please use .abs if you meant
# to call it as a method on $_, or use an explicit invocant or argument,
# or use &abs to refer to the function as a noun
=end code
In this case, providing an C<abs> sub that doesn't take any arguments, did
not make the compilation error go away.
Expand Down

0 comments on commit 71d8675

Please sign in to comment.