fbpx

Ambiguous function call with ref parameter

More
4 months 2 weeks ago #1 by Mathias Koch
Ambiguous function call with ref parameter was created by Mathias Koch
Hi,

the following call to MLine() produces a compiler error with 2.0.0.4, it did not with 2.0.0.2. Is that intended?
FUNCTION y_MLine(cString AS USUAL, nLine AS USUAL, nOffset := 0 AS DWORD) AS STRING STRICT
    RETURN MLine(cString, nLine, nOffset)

Severity Code Description Project File Line Suppression State
Error XS0121 The call is ambiguous between the following methods or properties: 'VulcanRTFuncs.Functions.MLine(Vulcan.__Usual, Vulcan.__Usual, dword)' and 'VulcanRTFuncs.Functions.MLine(Vulcan.__Usual, Vulcan.__Usual, ref dword)' LibBaseFuncs C:\Source\TrunkX\Source\VLSC\LibBaseFuncs\M_String.prg 1178


Mathias

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic Ambiguous function call with ref parameter
Mathias,

What are your settings on the Language page. Especially vo6 and vo7?

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #3 by Mathias Koch
Replied by Mathias Koch on topic Ambiguous function call with ref parameter
Robert,

these are the settings:
/az- /ins+ /lb+ /ovf- /ppo- /vo1- /vo2+ /vo3+ /vo4+ /vo5+ /vo6+ /vo7+ /vo8- /vo9+ /vo10+ /vo12- /vo13- /vo14- /vo15+ /vo16-

Mathias

Please Log in or Create an account to join the conversation.