1--TEST--
2Typed class constants (redefinition; interfaces and traits)
3--FILE--
4<?php
5enum E {
6    case Case1;
7}
8
9interface I {
10    public const E CONST1 = E::Case1;
11}
12
13trait T {
14    public const E CONST1 = E::Case1;
15}
16
17class C implements I {
18    use T;
19
20    public const E CONST1 = E::Case1;
21}
22
23var_dump(C::CONST1);
24?>
25--EXPECT--
26enum(E::Case1)
27