Stuck on 'unable to infer enough type info'