1--TEST--
2Ownership of constant expression inhereted from interface should be transfered to class
3--FILE--
4<?php
5interface I {
6    const X2 = 'X' . self::Y2;
7    const Y2 = 'Y';
8}
9eval('class B implements I{}');
10var_dump(B::X2);
11?>
12--EXPECT--
13string(2) "XY"
14