No fitting overload for function call with signature "{0}" could be found. Possible candidates are {1} (AJTERR10049)
Product(s) | Karo.Net Compiler |
---|
Description
There could no “best” overload for the function be found to be called.
#entryPoint; ||: void { test(false, false); // ^^^^ The parameters match both overloads of the function equally. } test |param1: number, param2: bool|: void { } test |param1: bool, param2: number|: void { }
How can I resolve this error?
Cast the parameters in a way, that they match the exact parameter types.