-- v2.15 P2.5 (5.2): _ENV shadowing in nested scope (top-level
-- shadowing breaks the diff harness's stdout capture, so scope
-- to a function body only).
localfunctionshadowed()local_ENV={}_ENV.x=42return_ENV.x,_ENV.foo-- 42, nil
endprint(shadowed())