Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Overloaded functions bug #103
In C#, I have an overloaded function, GetBlock(int) and GetBlock(string), which I am providing to Lua to be used.
If I run GetBlock(int) multiple times from lua, it is fine. However, once I have used the string overload, I can no longer use the int overload. It will default to the string overload every time.
newblock and newblock2 will function properly, but newblock3 will be attempting to run the string overload rather than the int.
I'm seeing similar behavior with overloads involving
As soon as that third overload is selected, that's all the lua environment will ever use. Up until that point, the appropriate overloads are selected, contextually.