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
Seems passing a "comparison result" as parameter is not interpreting it as int when only method overloads accept "long" (not "int")
SuperStrictFrameworkBrl.StandardIOTypeTTestMethodNew(i:Long)
End MethodMethodNew(i:ULong)
End MethodEnd TypeFunctionFunc:Int()
Return1End Function
Print (Func() =2) 'uses "StringFromInt(_m_untitled2_Func()==2)"'leads to errorLocal t:TTest=NewTTest(Func()=2)
Results in:
Compile Error: Unable to determine overload to use: Method TTest.New(i:Long) or Method TTest.New(i:ULong).
(when also adding an ":int"-accepting overload, this one is used and no error pops up)
I mentioned this at discord and our fellow coder @HurryStarfish annotated:
...okay nevermind, i tried it out and the blitzmax-ng compiler only complains if you use the comparison as an argument
passing an int literal works
and:
Local arr:Object = [1 = 2]
Print TTypeId.ForObject(arr).Name()
'prints Int[]
The text was updated successfully, but these errors were encountered:
Heya,
Seems passing a "comparison result" as parameter is not interpreting it as int when only method overloads accept "long" (not "int")
Results in:
(when also adding an ":int"-accepting overload, this one is used and no error pops up)
I mentioned this at discord and our fellow coder @HurryStarfish annotated:
and:
The text was updated successfully, but these errors were encountered: