We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee29735 commit 154e71aCopy full SHA for 154e71a
src/fsharp/tast.fs
@@ -35,7 +35,7 @@ open Microsoft.FSharp.Core.CompilerServices
35
/// Unique name generator for stamps attached to lambdas and object expressions
36
type Unique = int64
37
//++GLOBAL MUTABLE STATE
38
-let newUnique = let mutable i = 0L in fun () -> System.Threading.Interlocked.Increment(&i)
+let newUnique = let i = ref 0L in fun () -> System.Threading.Interlocked.Increment(i)
39
type Stamp = int64
40
41
/// Unique name generator for stamps attached to to val_specs, tycon_specs etc.
0 commit comments