# New Ticket Created by Dave Rolsky
# Please include the string: [perl #127479]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127479 >
$ perl6 --version
This is Rakudo version 2015.12-259-g5605d5f built on MoarVM version 2016.01
implementing Perl 6.c.
$ perl6 -e 'sub foo { dd callframe(0) }; foo()'
Cannot find method 'WHICH': no method cache and no .^find_method
in sub foo at -e line 1
in block <unit> at -e line 1
$ perl6 -e 'sub foo { return callframe(0) }; dd foo()'
CallFrame.new(level => 2, annotations => {:file("-e"), :line("1")}, my =>
{"\$!" => Nil, "\$*DISPATCHER" => Mu, "\$/" => Nil, "\$_" => Any, "\$ยข" => Nil,
:RETURN(sub EXHAUST (| is raw) { #`(Sub|53310664) ... })})
So it works in some contexts and blows up very confusingly in others.