-
-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Description
The following code generates a compiler error:
'Error XS0121 The call is ambiguous between the following methods or properties: 'System.Math.Max(sbyte, sbyte)' and 'System.Math.Max(int, int)'
Example code:
LOCAL dwValue := 1 AS DWORD
? Math.Max(dwValue, 2)
Environment:
X# 2.15.0.3
IDE: VS2019
This is one example. The same error occurs for other data types, as well as in other methods, for example, System.Array.Copy , etc.
In the previous version 2.14.0.4, the X# compiler successfully compiled code like this.
P.S. Today I have a day off and I took the time to install the new version of X# 2.15.0.3 instead of 2.14.0.4 and immediately ran into the error described above when compiling my projects.