1--TEST--
2Generator return type must be a supertype of Generator (with union types)
3--FILE--
4<?php
5function test1() : StdClass|ArrayObject|array {
6    yield 1;
7}
8?>
9--EXPECTF--
10Fatal error: Generator return type must be a supertype of Generator, StdClass|ArrayObject|array given in %s on line %d
11