Ambiguous function call with ref parameter
Posted: Mon Sep 03, 2018 6:33 am
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?
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
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)
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