Unspecified closure type should be object