Failed assertion when setting reference of class in foreach
gamedev.net
class R{R(){}}class C{R@ Reference;C(){@Reference = null;}}array<C> Array;void Main(){for (uint i = 0; i < 10; i++){Array.insertLast(C());}foreach (C ExampleClass : Array){@ExampleClass.Reference = R();}}Here is the minimal reproduction case, note that replacing the foreach loop at the bottom with a reqular for loop does not make the assertion error show up:
0 Kommentare ·0 Anteile ·34 Ansichten