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
While working on #1378, I discovered that there are some special cases with .cctor and beforefieldinit. We currently do not have dedicated tests that enumerate all possible ways of initializing fields.
The text was updated successfully, but these errors were encountered:
The problem is, as soon as there is a static ctor defined in a type, the beforefieldinit flag no longer is emitted. The current transform does not transform type initializers that do not have the flag set on their type.
While working on #1378, I discovered that there are some special cases with
.cctor
andbeforefieldinit
. We currently do not have dedicated tests that enumerate all possible ways of initializing fields.The text was updated successfully, but these errors were encountered: