Ambiguous methods
Posted: Thu Sep 13, 2018 11:41 am
Hi,
I have the following demo code. In Vulcan.NET, it compiles and runs as expected. The X# compiler gives the error
XS0121 The call is ambiguous between the following methods or properties: 'XS1715_XS.Log.Debug(string, params object[])' and 'XS1715_XS.Log.Debug(string, System.Exception, params object[])' XS1715_XS
Is this intended?
Mathias
I have the following demo code. In Vulcan.NET, it compiles and runs as expected. The X# compiler gives the error
XS0121 The call is ambiguous between the following methods or properties: 'XS1715_XS.Log.Debug(string, params object[])' and 'XS1715_XS.Log.Debug(string, System.Exception, params object[])' XS1715_XS
Is this intended?
Mathias
Code: Select all
PUBLIC STATIC CLASS Log
PUBLIC STATIC METHOD Debug(pcMessage AS STRING, [ParamArray] poArgs AS OBJECT[]) AS VOID
Console.WriteLine(STRING.Format(pcMessage, poArgs))
PUBLIC STATIC METHOD Debug(pcMessage AS STRING, poException AS Exception, [ParamArray] poArgs AS OBJECT[]) AS VOID
Console.WriteLine(STRING.Format(pcMessage, poArgs))
Console.WriteLine(poException)
END CLASS
FUNCTION Start() AS VOID
Console.WriteLine("Hello World!")
LOCAL uArgument := "Test" AS USUAL
Log.Debug("Log Message", uArgument)
Console.WriteLine("Press any key to continue...")
Console.ReadKey()