Issue Details (XML | Word | Printable)

Key: BOO-1019
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

A class with a static constructor emits 'beforeFieldInit'

Created: 22/May/08 10:39 AM   Updated: 22/May/08 08:48 PM   Resolved: 22/May/08 08:48 PM
Return to search
Component/s: None
Affects Version/s: 0.8.2
Fix Version/s: 0.9

Time Tracking:
Not Specified


 Description  « Hide
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.



Cedric Vivier made changes - 22/May/08 10:39 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Cedric Vivier added a comment - 22/May/08 08:48 PM

fixed in rev. 2965


Cedric Vivier made changes - 22/May/08 08:48 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]