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 154e71a commit 1791218Copy full SHA for 1791218
src/fsharp/tast.fs
@@ -40,7 +40,7 @@ type Stamp = int64
40
41
/// Unique name generator for stamps attached to to val_specs, tycon_specs etc.
42
//++GLOBAL MUTABLE STATE
43
-let newStamp = let mutable i = 0L in fun () -> System.Threading.Interlocked.Increment(&i)
+let newStamp = let i = ref 0L in fun () -> System.Threading.Interlocked.Increment(i)
44
45
/// A global generator of compiler generated names
46
// ++GLOBAL MUTABLE STATE
0 commit comments