Just for the record: This seems to work on the JVM backend:

$ ./perl6-j --optimize=3 -e 'sub f() { sub g() { if True { return 
&?ROUTINE.name } } }; say f()()'
g

I'm going to unfudge the test in S02-magicals/sub.t for rakudo.jvm.

Reply via email to