When invoking a closure created from a method pointer, the following warning is printed in the log:
The code works correctly, but produces this warning:
The workaround gets rid of the warning:
I would prefer to not have to create this extra closure.
My situation is a little more complex than this as the method is from another vars script, but it should be the same situation.