--TEST-- Replacing int type with intersection type --FILE-- --EXPECTF-- Fatal error: Declaration of Test2::method(): X&Y must be compatible with Test::method(): int in %s on line %d