Skip to content

Commit

Permalink
Note the IL differences
Browse files Browse the repository at this point in the history
  -- just the type being mentioned in each case
  • Loading branch information
SteveGilham committed Dec 5, 2021
1 parent b1a7ada commit 657a648
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions AltCover.Recorder/Recorder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,27 @@ module Instance =
/// Gets or sets the current test method
/// </summary>
module private CallTrack =
// .field assembly static initonly class AltCover.Recorder.Instance/I/AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> value@175
// .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
// 01 00 00 00 00 00 00 00
//...
// IL_0095: newobj instance void class AltCover.Recorder.Instance/I/AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>>::.ctor()
// IL_009a: stsfld class AltCover.Recorder.Instance/I/AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> '<StartupCode$AltCover-Recorder>.$Recorder'::value@175
//...
// IL_0000: ldsfld class AltCover.Recorder.Instance/I/AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> '<StartupCode$AltCover-Recorder>.$Recorder'::value@175
// IL_0005: ret
// vs
// .field assembly static initonly class [mscorlib]System.Threading.AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> value@175
// .custom instance void [mscorlib]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggerBrowsableState) = (
// 01 00 00 00 00 00 00 00
// )
//...
// IL_0095: newobj instance void class [mscorlib]System.Threading.AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>>::.ctor()
// IL_009a: stsfld class [mscorlib]System.Threading.AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> '<StartupCode$AltCover-Recorder>.$Recorder'::value@175
//...
// IL_0000: ldsfld class [mscorlib]System.Threading.AsyncLocal`1<class Microsoft.FSharp.Core.FSharpOption`1<class Microsoft.FSharp.Collections.FSharpList`1<int32>>> '<StartupCode$AltCover-Recorder>.$Recorder'::value@175
// IL_0005: ret

let value = AsyncLocal<Option<int list>>()

let private update l = value.Value <- Some l
Expand Down

0 comments on commit 657a648

Please sign in to comment.