The answer is in this post Constraints for `@generated` function - #3 by Chris_Foster
The generated function is not allowed to introduce a new type, and that’s what happens with a closure.
The answer is in this post Constraints for `@generated` function - #3 by Chris_Foster
The generated function is not allowed to introduce a new type, and that’s what happens with a closure.