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.
Christian Bartolomaeus via RT Thu, 04 Apr 2019 22:59:53 -0700
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.