1--TEST--
2Typed class constants (static type error)
3--FILE--
4<?php
5enum E1 {
6    const static C = E2::Foo;
7}
8
9enum E2 {
10   case Foo;
11}
12
13try {
14    var_dump(E1::C);
15} catch (TypeError $e) {
16    echo $e->getMessage() . "\n";
17}
18
19?>
20--EXPECT--
21Cannot assign E2 to class constant E1::C of type static
22