# New Ticket Created by  Lloyd Fournier 
# Please include the string:  [perl #128314]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128314 >


m: sub f {...}; our constant @a = lazy map { f() }, ^Inf; sub f { rand };
say @a[^3]
22:14 <+camelia> rakudo-moar dfbf1e: OUTPUT«Stub code executed␀

grondilu++ for picking this up

Since the RHS of the constant is actually being run at runtime and not
BEGIN the reference to it should not be point to the definition but it's
still executing the sub.

Reply via email to