Created
July 3, 2012 16:35
-
-
Save masak/3040873 to your computer and use it in GitHub Desktop.
I golfed moritz' bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat htmlify.pl | |
use A; | |
use fatal; | |
x; | |
$ cat A.pm | |
class A; | |
sub x is export { | |
my @opened; | |
my $last = @opened[*-1] // 0; | |
say "B"; | |
} | |
$ export PERL6LIB=. | |
$ nom htmlify.pl | |
Cannot use negative index -1 on Array | |
in block <anon> at src/gen/CORE.setting:9555 | |
in method postcircumfix:<[ ]> at src/gen/CORE.setting:1213 | |
in method postcircumfix:<[ ]> at src/gen/CORE.setting:1243 | |
in sub x at ./A.pm:5 | |
in block <anon> at htmlify.pl:4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment