Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.8.2
-
Fix Version/s: 0.9
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
static class Foo: _x = System.Collections.Generic.List[of int]() def constructor(): #optional initialization stuff def X(): pass def Bar(): _x.Add(1)
The type Foo is emitted with beforeFieldInit CIL attribute on it.
This means the constructor is not guaranteed to be executed even if we call method X.
fixed in rev. 2965