Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2011 22:52
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/1050054 to your computer and use it in GitHub Desktop.
Save anonymous/1050054 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/nom$ ./perl6 pos
scalar
Ambiguous dispatch to multi 'xyz'. Ambiguous candidates had signatures:
:(Any $x)
:(Positional $x)
current instr.: 'xyz' pc 447 ((file unknown):163) (:1)
called from Sub '_block1002' pc 131 ((file unknown):89) (:9)
called from Sub '_block1000' pc 14 ((file unknown):20) (:1)
called from Sub 'nqp;HLL;Compiler;_block1782' pc 34185 (src/stage2/gen/NQPHLL.pir:10821)
called from Sub 'nqp;HLL;Compiler;eval' pc 34043 (src/stage2/gen/NQPHLL.pir:10776)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36341 (src/stage2/gen/NQPHLL.pir:11711)
called from Sub 'nqp;HLL;Compiler;_block1864' pc 35289 (src/stage2/gen/NQPHLL.pir:11256)
called from Sub 'nqp;HLL;Compiler;command_line' pc 35094 (src/stage2/gen/NQPHLL.pir:0)
called from Sub 'MAIN' pc 638 (src/gen/perl6.pir:230)
called from Sub '_block1000' pc 100 (src/gen/perl6.pir:67)
pmichaud@kiwi:~/nom$ cat pos
proto sub xyz(|$) { * }
multi sub xyz($x) { say "scalar" }
multi sub xyz(Positional $x) { say "positional" }
my @a = 1..10;
xyz(1);
xyz(@a);
pmichaud@kiwi:~/nom$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment