This commit is contained in:
Ivan Bondarev 2024-11-12 21:38:07 +01:00
parent 82776f3c77
commit 96c68f1666
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ namespace PascalABCCompiler
oper_names[noteq_name] = "op_Inequality";
oper_names[shl_name] = "op_LeftShift";
oper_names[shr_name] = "op_RightShift";
oper_names[assign_name] = "op_Assign";
}
public static string GetNETOperName(string name)

View file

@ -1567,7 +1567,7 @@ namespace PascalABCCompiler.NetHelper
public static List<SymbolInfo> FindName(Type t, string name)
{
if (name == null) return null;
if (name == StringConstants.assign_name) return null;
if (name == StringConstants.assign_name && !t.IsValueType) return null;
string s = StringConstants.GetNETOperName(name);
string tmp_name = name;
if (s != null)