File tree Expand file tree Collapse file tree
tests/FSharp.Compiler.ComponentTests/EmittedIL Expand file tree Collapse file tree Original file line number Diff line number Diff line change 517517 IL_0005: ret
518518 }
519519
520+ .method private specialname rtspecialname static void .cctor() cil managed
521+ {
522+
523+ .maxstack 8
524+ IL_0000: ldc.i4.0
525+ IL_0001: stsfld int32 '< StartupCode$assembly> '.$assembly::init@
526+ IL_0006: ldsfld int32 '< StartupCode$assembly> '.$assembly::init@
527+ IL_000b: pop
528+ IL_000c: ret
529+ }
530+
531+ .method assembly static void staticInitialization@() cil managed
532+ {
533+
534+ .maxstack 8
535+ IL_0000: ret
536+ }
537+
520538 .property class assembly/ C e2()
521539 {
522540 .get class assembly/ C assembly::get_e2()
526544.class private abstract auto ansi sealed '< StartupCode$assembly> '.$assembly
527545 extends [runtime]System.Object
528546{
547+ .field static assembly int32 init@
548+ .custom instance void [runtime]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [runtime]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 )
549+ .custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
550+ .custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
551+ .method private specialname rtspecialname static void .cctor() cil managed
552+ {
553+
554+ .maxstack 8
555+ IL_0000: call void assembly::staticInitialization@()
556+ IL_0005: ret
557+ }
558+
529559}
530560
531561.class private auto ansi serializable sealed System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes
Original file line number Diff line number Diff line change 14551455 IL_0005: ret
14561456 }
14571457
1458+ .method private specialname rtspecialname static void .cctor() cil managed
1459+ {
1460+
1461+ .maxstack 8
1462+ IL_0000: ldc.i4.0
1463+ IL_0001: stsfld int32 '< StartupCode$assembly> '.$ABC::init@
1464+ IL_0006: ldsfld int32 '< StartupCode$assembly> '.$ABC::init@
1465+ IL_000b: pop
1466+ IL_000c: ret
1467+ }
1468+
1469+ .method assembly static void staticInitialization@() cil managed
1470+ {
1471+
1472+ .maxstack 8
1473+ IL_0000: ret
1474+ }
1475+
14581476 .property string greeting()
14591477 {
14601478 .get string ABC/ ABC::get_greeting()
14831501 IL_0005: ret
14841502 }
14851503
1504+ .method private specialname rtspecialname static void .cctor() cil managed
1505+ {
1506+
1507+ .maxstack 8
1508+ IL_0000: ldc.i4.0
1509+ IL_0001: stsfld int32 '< StartupCode$assembly> '.$ABC::init@
1510+ IL_0006: ldsfld int32 '< StartupCode$assembly> '.$ABC::init@
1511+ IL_000b: pop
1512+ IL_000c: ret
1513+ }
1514+
1515+ .method assembly static void staticInitialization@() cil managed
1516+ {
1517+
1518+ .maxstack 8
1519+ IL_0000: call void ABC/ ABC::staticInitialization@()
1520+ IL_0005: ret
1521+ }
1522+
14861523 .property string greeting()
14871524 {
14881525 .get string ABC::get_greeting()
14921529.class private abstract auto ansi sealed '< StartupCode$assembly> '.$ABC
14931530 extends [runtime]System.Object
14941531{
1532+ .field static assembly int32 init@
1533+ .custom instance void [runtime]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [runtime]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 )
1534+ .custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
1535+ .custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
14951536 .method public static void main@() cil managed
14961537 {
14971538 .entrypoint
14981539
14991540 .maxstack 8
1500- IL_0000: ret
1541+ IL_0000: call void ABC::staticInitialization@()
1542+ IL_0005: ret
15011543 }
15021544
15031545}
Original file line number Diff line number Diff line change 21532153 IL_0005: ret
21542154 }
21552155
2156+ .method private specialname rtspecialname static void .cctor() cil managed
2157+ {
2158+
2159+ .maxstack 8
2160+ IL_0000: ldc.i4.0
2161+ IL_0001: stsfld int32 '< StartupCode$assembly> '.$assembly::init@
2162+ IL_0006: ldsfld int32 '< StartupCode$assembly> '.$assembly::init@
2163+ IL_000b: pop
2164+ IL_000c: ret
2165+ }
2166+
2167+ .method assembly static void staticInitialization@() cil managed
2168+ {
2169+
2170+ .maxstack 8
2171+ IL_0000: ret
2172+ }
2173+
21562174 .property string greeting()
21572175 {
21582176 .get string XYZ.ABC/ ABC::get_greeting()
21812199 IL_0005: ret
21822200 }
21832201
2202+ .method private specialname rtspecialname static void .cctor() cil managed
2203+ {
2204+
2205+ .maxstack 8
2206+ IL_0000: ldc.i4.0
2207+ IL_0001: stsfld int32 '< StartupCode$assembly> '.$assembly::init@
2208+ IL_0006: ldsfld int32 '< StartupCode$assembly> '.$assembly::init@
2209+ IL_000b: pop
2210+ IL_000c: ret
2211+ }
2212+
2213+ .method assembly static void staticInitialization@() cil managed
2214+ {
2215+
2216+ .maxstack 8
2217+ IL_0000: call void XYZ.ABC/ ABC::staticInitialization@()
2218+ IL_0005: ret
2219+ }
2220+
21842221 .property string greeting()
21852222 {
21862223 .get string XYZ.ABC::get_greeting()
21902227.class private abstract auto ansi sealed '< StartupCode$assembly> '.$assembly
21912228 extends [runtime]System.Object
21922229{
2230+ .field static assembly int32 init@
2231+ .custom instance void [runtime]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [runtime]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 )
2232+ .custom instance void [runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
2233+ .custom instance void [runtime]System.Diagnostics.DebuggerNonUserCodeAttribute::.ctor() = ( 01 00 00 00 )
21932234 .method public static void main@() cil managed
21942235 {
21952236 .entrypoint
21962237
21972238 .maxstack 8
2198- IL_0000: ret
2239+ IL_0000: call void XYZ.ABC::staticInitialization@()
2240+ IL_0005: ret
21992241 }
22002242
22012243}
You can’t perform that action at this time.
0 commit comments