Closed cyborgyn closed 2 years ago
@cyborgyn The static field initializer (translated type initializer) implicitly depends correct initializing sequence graph. I don't check a requirements on ECMA-335 and don't have much insight now...
If we don't any resolve correcting, may cause the binary touch uninitialized data...?
Bit related? #85
@cyborgyn Sorry for the very delay. I understood #100 work and imported it with cherry-pick. https://github.com/kekyo/IL2C/commit/2cbb6f1da780acb289fb9f98d7b4adda99fd06c3
If we try to transpile a struct, where one of the static fields are themselves, the transpilation fails with StackOverflowException. Example: