Hm. :-( I guess it must be a bad diagnostic. Try adding a dummy print()
to your closure to turn it into a multi-statement closure; that'll tell the compiler to type-check each statement on its own and possibly produce more useful diagnostics.
1 Like