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
When there are two overload functions with i64 and f64 data types and if user tries to pass integer value, I expect the function with i64 parameter to be called.
Below are the codon overload functions: @overload
test_function(val: i64):
print('Calling int function') @overload
test_function(val: f64):
print('Calling float function')
Now if I try to call this function with following parameters
test_function(10)
Actual Output:
Calling float function
Expected output:
Calling int function
The text was updated successfully, but these errors were encountered:
When there are two overload functions with i64 and f64 data types and if user tries to pass integer value, I expect the function with i64 parameter to be called.
Below are the codon overload functions:
@overload
test_function(val: i64):
print('Calling int function')
@overload
test_function(val: f64):
print('Calling float function')
Now if I try to call this function with following parameters
test_function(10)
Actual Output:
Calling float function
Expected output:
Calling int function
The text was updated successfully, but these errors were encountered: