Skip to content

Commit

Permalink
Revert "Note the IL differences"
Browse files Browse the repository at this point in the history
This reverts commit 657a648.
  • Loading branch information
SteveGilham committed Dec 10, 2021
1 parent 0edadc4 commit 895115f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions AltCover.Recorder/Recorder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -172,27 +172,6 @@ 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 895115f

Please sign in to comment.