Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2011 08:53
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/1048533 to your computer and use it in GitHub Desktop.
Save anonymous/1048533 to your computer and use it in GitHub Desktop.
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$ ./perl6 pos
No type check cache and no type_check method in meta-object
current instr.: 'xyz' pc 447 ((file unknown):157945987) (:1)
called from Sub '_block1002' pc 118 ((file unknown):157945910) (:8)
called from Sub '_block1000' pc 14 ((file unknown):157945844) (:1)
called from Sub 'nqp;HLL;Compiler;_block1782' pc 34251 (src/stage2/gen/NQPHLL.pir:10834)
called from Sub 'nqp;HLL;Compiler;eval' pc 34109 (src/stage2/gen/NQPHLL.pir:10789)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36146 (src/stage2/gen/NQPHLL.pir:11591)
called from Sub 'nqp;HLL;Compiler;command_line' pc 35278 (src/stage2/gen/NQPHLL.pir:11233)
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$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment