public static class Utils1{
public void doSth(object a, object b){
}
// The ord/chr in extension methods cause the problem that methods in Utils1 and Utils2 are mixed.
public int toInt(this char c) => ord(c);
public char toChar(this int v) => chr(v);
}
public static class Utils2{
public void doSth(int a, int b){
}
}
public static class MyTest{
public void test(){
var a = new Sugar.Collections.List<int>(){1};
// Compile error: (E110) Ambiguous call to overloaded method "doSth"
Utils2.doSth(a[0], 1);
}
}
Elements 8.2.88.1857
Test Project: App1.zip (111.6 KB)