xp-framework/compiler

Fatal error: Label 'c1107822099' already defined

Closed this issue · 1 comments

...when emitting a try/catch nested inside a catch block for PHP 7.0:

use lang\IllegalArgumentException;

class Test {
  public function run() {
    try {
      throw new IllegalArgumentException("test");
    } catch (IllegalArgumentException $expected) {
      try {
        throw $expected;
      } catch (IllegalArgumentException $expected) {
        return $expected->getMessage();
      }
    }
  }
}