Still reproducible (2017.11,HEAD(e5b660e)). Now it complains early and the error is not as LTA:
===SORRY!=== Error while compiling /tmp/zOO8XZsbYQ Undeclared routine: k used at line 1 On 2015-03-10 05:18:33, barto...@gmx.de wrote: > The error messages for the first two commands have changed slightly, > but in the same way. I'm pasting the second example only: > > $ perl6 -e 'constant k = 1, map { k[$_] }, 0..*; .say for k[^10]' > ===SORRY!=== Error while compiling -e > Variable '&k' is not declared > at -e:1 > ------> constant k = 1, map { ⏏k[$_] }, 0..*; .say for k[^10] > > But on MoarVM and JVM the third example now gives a different (though > LTA) error: > > $ perl6-m -e 'constant k = k; say k' > ===SORRY!=== > Cannot invoke this object (REPR: Null, cs = 0) > > $ perl6-j -e 'constant k = k; say k' > ===SORRY!=== > Can not invoke object '&k'