xsharp.eu • Ambiguous function call with ref parameter
Page 1 of 1

Ambiguous function call with ref parameter

Posted: Mon Sep 03, 2018 6:33 am
by Kromi
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?

Code: Select all

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:SourceTrunkXSourceVLSCLibBaseFuncsM_String.prg 1178


Mathias

Ambiguous function call with ref parameter

Posted: Mon Sep 03, 2018 9:05 am
by robert
Mathias,

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

Robert

Ambiguous function call with ref parameter

Posted: Mon Sep 03, 2018 9:08 am
by Kromi
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