Type system problem with indices.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3429
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
The code line
array(string) ind = indices([object]x);
produces the warning (strict_types)
An expression type array | array(string) cannot be assigned to a variable of type array(string).
even though indices has the type
function(string | array : array(int)) | function(mapping((1=mixed):mixed) | multiset((1=mixed)) : array(1)) | function(object | program : array(string))
It looks to me as if indices should have the compatible type array(string) in the topmost expression.