Unable to infer complex closure return type; add explicit type to disambiguate

I've had the same problem half an hour ago. After all it appeared that a misspelled variable name inside the ForEach (actually in the if statement) causes this "Unable to infer complex closure return type; add explicit type to disambiguate"