Unfortunately, I cannot transfer the real project to third parties. This is prohibited by the policy of the company I work for. This is a large project and it uses other projects (reference) that are included in the solution (81MB). I would make a separate example, but I don’t even understand where the error is in the project.
Leonid,
This happens when the compiler tries to decide which of two or more overloads of a method to choose.
For some reason this should return at least one option with the value "Best" but in this case it apparently returns only "Worst" values.
So if you want to look you need to look for methods or functions that are overloaded.
Maybe you are calling one of these with a value of type Usual ?
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
I found the problematic method. It is hosted in another project (library) that is linked to the project generating the compilation error. The problem is really with method overloading and type parameter PARAMS.
FUNCTION Start() AS VOID STRICT
Test.Exec("MyFunc", 1)
RETURN
PUBLIC STATIC CLASS Test
PUBLIC STATIC METHOD Exec(cName AS STRING, uReturnValue OUT USUAL, aParameters PARAMS OBJECT[]) AS LOGIC
uReturnValue := NIL
RETURN FALSE
PUBLIC STATIC METHOD Exec(cName AS STRING, aParameters PARAMS OBJECT[]) AS USUAL
RETURN NIL
END CLASS