You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's happening here is that the compiler is having to manufacture a synthetic closure in order to capture both the function itself (the generic method) and the dictionary arguments required to call it. The code is here:
This is an inherent limitation on runtime.FuncForPC -- if you call it on a wrapper function, it returns the wrapper, not the thing wrapped. To do otherwise would be essentially to lie: the PC you handed it is not the PC of the method but the PC of the wrapper, so one needs to be prepared for that possibility (especially if you do things like ask for file/line).