--TEST-- GH-7792 (Refer to enum as enum instead of class) --FILE-- --EXPECTF-- Fatal error: Enum Foo cannot implement previously implemented interface A in %s on line %d