generated named/anon function while nested object declaration translation — must use the same approach to define generation place as class (continue new class impl, step 2)