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 2e2f05d commit 71d8675Copy full SHA for 71d8675
doc/Language/pragmas.pod6
@@ -84,11 +84,13 @@ Allow for some other language constructs that were deemed to be a trap that
84
warranted a warning and/or an error in normal Perl 6 programming. Currently,
85
only C<Perl5> is allowed, which disables a bunch of P5isms warnings and errors.
86
87
+=begin code :skip-test<compilation error>
88
sub abs() { say "foo" }
89
abs;
90
# Unsupported use of bare "abs"; in Perl 6 please use .abs if you meant
91
# to call it as a method on $_, or use an explicit invocant or argument,
92
# or use &abs to refer to the function as a noun
93
+=end code
94
95
In this case, providing an C<abs> sub that doesn't take any arguments, did
96
not make the compilation error go away.
0 commit comments