Ambiguous function call with ref parameter

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Kromi
Posts: 45
Joined: Wed Jan 13, 2016 8:31 am

Ambiguous function call with ref parameter

Post 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
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Ambiguous function call with ref parameter

Post by robert »

Mathias,

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

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Kromi
Posts: 45
Joined: Wed Jan 13, 2016 8:31 am

Ambiguous function call with ref parameter

Post 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
Post Reply