Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2011 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1125603 to your computer and use it in GitHub Desktop.
Save anonymous/1125603 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/nom$ cat x
proto sub xyz(|$) { * }
multi sub xyz($a) { say "a" }
multi sub xyz($a, :$opt!) { say "a with opt" }
xyz(1);
pmichaud@kiwi:~/nom$ ./perl6 x
No applicable candidates found to dispatch to for 'xyz'. Available candidates are:
:(Any $a)
:(Any $a, Any $opt)
current instr.: 'xyz' pc 445 ((file unknown):213590412) (x:1)
called from Sub '_block1002' pc 96 ((file unknown):213590327) (x:5)
called from Sub '_block1000' pc 14 ((file unknown):213590262) (x:1)
called from Sub 'nqp;HLL;Compiler;_block1773' pc 34028 (src/stage2/gen/NQPHLL.pir:10718) (src/stage2/gen/NQPHLL.pm:1261)
called from Sub 'nqp;HLL;Compiler;eval' pc 33877 (src/stage2/gen/NQPHLL.pir:10650) (src/stage2/gen/NQPHLL.pm:1254)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36268 (src/stage2/gen/NQPHLL.pir:11607) (src/stage2/gen/NQPHLL.pm:1416)
called from Sub 'nqp;HLL;Compiler;command_eval' pc 35175 (src/stage2/gen/NQPHLL.pir:11160) (src/stage2/gen/NQPHLL.pm:1361)
called from Sub 'nqp;Perl6;Compiler;command_eval' pc 862 (src/gen/perl6-compiler.pir:312) (src/Perl6/Compiler.nqp:13)
called from Sub 'nqp;HLL;Compiler;command_line' pc 34847 (src/stage2/gen/NQPHLL.pir:11051) (src/stage2/gen/NQPHLL.pm:1346)
called from Sub 'MAIN' pc 715 (src/gen/perl6.pir:257) (src/main.nqp src/gen/main-version.nqp:28)
called from Sub '_block1000' pc 100 (src/gen/perl6.pir:69) (src/main.nqp src/gen/main-version.nqp:1)
pmichaud@kiwi:~/nom$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment