1--TEST-- 2Duplicate class alias type 3--FILE-- 4<?php 5 6interface X {} 7 8use A as B; 9function foo(): (X&A)|(X&B) {} 10 11?> 12--EXPECTF-- 13Fatal error: Type X&A is redundant with type X&A in %s on line %d 14