1--TEST--
2Enum constants can alias cases
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8    const Baz = self::Bar;
9}
10
11function test(Foo $var) {
12    echo "works\n";
13}
14
15test(Foo::Bar);
16test(Foo::Baz);
17
18?>
19--EXPECT--
20works
21works
22