<?php

class A
{
  private $foo;

  private function bar()
  {
    return function() {
      $this->foo = 42;
      yield 42;
    };
  }

  public function test() {
    foreach ($this->bar()() as $v) {
      echo $v;
    }
  }
}

(new A)->test();

Add test of $this in Generator in anonymous function
Add test of $this in Generator in anonymous function

- test case of #449
