--TEST-- Variance error in the presence of autoloading (4) --FILE-- --EXPECTF-- object(A)#2 (0) { } object(X)#2 (0) { } Fatal error: Declaration of Y::method(): A must be compatible with X::method(): B in %s on line %d