Skip to content

Commit

Permalink
Fix attribute embedding determinism (#15065)
Browse files Browse the repository at this point in the history
* Fix attribute embedding determinism

* Moar tests
  • Loading branch information
KevinRansom authored Apr 12, 2023
1 parent 9acaa4e commit 79e5466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compiler/TypedTree/TcGlobals.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
module internal FSharp.Compiler.TcGlobals

open System.Collections.Concurrent
open System.Linq
open System.Diagnostics

open Internal.Utilities.Library
Expand Down Expand Up @@ -1052,7 +1053,7 @@ type TcGlobals(
member _.embeddedTypeDefs = embeddedILTypeDefs.Values |> Seq.toList

member _.tryRemoveEmbeddedILTypeDefs () = [
for key in embeddedILTypeDefs.Keys do
for key in embeddedILTypeDefs.Keys.OrderBy(fun k -> k) do
match (embeddedILTypeDefs.TryRemove(key)) with
| true, ilTypeDef -> yield ilTypeDef
| false, _ -> ()
Expand Down

0 comments on commit 79e5466

Please sign in to comment.