1--TEST--
2No additional parenthesis are required around yield if they are already present
3--FILE--
4<?php
5
6function gen() {
7    if (yield $foo); elseif (yield $foo);
8    if (yield $foo): elseif (yield $foo): endif;
9    while (yield $foo);
10    do {} while (yield $foo);
11    switch (yield $foo) {}
12    (yield $foo);
13    die(yield $foo);
14    func(yield $foo);
15    $foo->func(yield $foo);
16    new Foo(yield $foo);
17}
18
19echo "Done";
20
21?>
22--EXPECT--
23Done
24