On Sat Oct 31 10:56:36 2015, coke wrote: > This dies, but only on the JVM: > > 13:41 < [Coke]> r: sub foo($a) { sub bar {} }; my $a=foo(1); > 13:41 <+camelia> rakudo-moar a05867: ( no output ) > 13:41 <+camelia> ..rakudo-jvm a05867: > OUTPUT«java.lang.NullPointerException > in block <unit> at /tmp/tmpfile:1» > > It's required for (at least) several tests in S02-magicals/sub.t
This was fixed with https://github.com/perl6/nqp/commit/2d88d98201. The tests in S02-magicals/sub.t are passing (again). > > Also: > > 13:42 < lizmat> [Coke]: that is a known issue, several places in the > core work > around that > 13:42 < lizmat> r: sub foo($a) { my $ = sub bar {} }; my $a=foo(1); > 13:42 <+camelia> rakudo-{moar,jvm} a05867: ( no output ) @lizmat: Are you able to point out those places in the core, perchance? Maybe some workarounds could be removed now? -- Christian