The type of one of the expressions in the 'clause' clause is incorrect. Type inference failed in the call to 'method'.
Type inference in query expressions flows from the type of the elements in the data source(s).
1.If it is not immediately obvious why the error is occurring, examine the query carefully and trace the type of the result of each clause from the data source to the point where the error is occurring.
The following code generates XS1941 because the equals operator is being asked to compare an int to a string.
// XS1941.prg
The method in which type inference fails is the method that the query clause is translated to at compile time.