ndv
02/27/2018, 5:22 PMMyClass::myFunction
returns a different type to MyClass::class.functions.find{myFunction}
- I only have access to the reflected classes and the code that's going to be calling these functions works perfect when I use MyClass::myFunction
, however when i get hold of the function via MyClass::class.functions
it expects more arguments than the actual function. Any way I can get to the same reflected function as MyClass::myFunction
from MyClass::class.functions
? Thanksndv
02/27/2018, 5:59 PMndv
02/27/2018, 6:11 PMMyClass::myFunction
results in a boundInstanceMethod whereas MyClass::class::functions
delivers an InstanceMethod - this is where the difference came in. I'll have to find some workaround for this or alter the codebaseRafael Chaves
02/27/2018, 7:58 PMRafael Chaves
02/27/2018, 8:02 PMRafael Chaves
02/27/2018, 8:02 PM