--TEST--
#4029 When use_yield is true, CaptureNode fall in iterator_to_array pitfall regarding index overwrite
--TEMPLATE--
{%- set tmp -%}
  {%- block foo 'foo' -%}
  {%- block bar 'bar' -%}
{%- endset -%}
{{ tmp }}
--DATA--
return []
--CONFIG--
return ['use_yield' => true]
--EXPECT--
foobar