3 enum Foo
: int as int {
22 function test(): @Foo
{
26 function test2(@int
$x): void
{
30 function lurr(): void
{
34 function do_case(@Bar
$x): int {
46 function welp(@Baz
$x): void
{
52 var_dump(do_case(Bar
::BAR
));
53 // This is bogus and should produce warning
54 var_dump(do_case("welp"));
57 // This is bogus but will work fine
59 // This is bogus and should produce warning