When I typically see this error it's because I forgot the () on an anonymous function. In this case I didn't though. Instead, this error is reported when there was an error inside the anonymous function; that being using an if instead of the intended for with the range operator.
The text was updated successfully, but these errors were encountered:
changed the title
Confusing compiler error when using if instead of for with range operator inside anonymous functionApr 23, 2020