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
This is a regression due to my PR #193. When there are two overloads that have the same arguments except for the params array, calling the method without the array leads to the improper method to be chosen.
internalstaticclassUtils{publicstaticintWithParamsArray2(stringstr,Exceptione)=>6;publicstaticintWithParamsArray2(stringstr,Exceptione,paramsstring[]args)=>7;}vartarget=newInterpreter();target.Reference(typeof(Utils));varstr="str";vare=newException();target.SetVariable("str",str);target.SetVariable("e",e);// incorrectly uses the overload with the params arrayAssert.AreEqual(6,target.Eval("Utils.WithParamsArray2(str, e)"));Assert.AreEqual(7,target.Eval("Utils.WithParamsArray2(str, e, str, str)"));
The text was updated successfully, but these errors were encountered:
This is a regression due to my PR #193. When there are two overloads that have the same arguments except for the params array, calling the method without the array leads to the improper method to be chosen.
The text was updated successfully, but these errors were encountered: