You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public struct test : IDisposable
{
public List a;
public test(out List b)
{
a = new List();
b = a;
}
public void Dispose() { }
}
new test(out List s);
具体报错信息为数组越界,ILInterpreter.cs:1152行.mStack[dst->Value] = mStack[val->Value];
本地测试mStack的长度为4,dst->Value为6,val->Value为3,所以访问数组下标6时会越界.
如果将struct改为class则没有此问题
The text was updated successfully, but these errors were encountered:
版本:2.1.0
unity:2020.3.40f1c1
public struct test : IDisposable
{
public List a;
public test(out List b)
{
a = new List();
b = a;
}
public void Dispose() { }
}
new test(out List s);
具体报错信息为数组越界,ILInterpreter.cs:1152行.mStack[dst->Value] = mStack[val->Value];
本地测试mStack的长度为4,dst->Value为6,val->Value为3,所以访问数组下标6时会越界.
如果将struct改为class则没有此问题
The text was updated successfully, but these errors were encountered: