--TEST--
"extends" tag accepts Twig\Template instance
--TEMPLATE--
{% extends foo %}

{% block content %}
{{ parent() }}FOO
{% endblock %}
--TEMPLATE(foo.twig)--
{% block content %}BAR{% endblock %}
--DATA--
return ['foo' => $twig->load('foo.twig')]
--EXPECT--
BARFOO
