Skip to content

Commit aa6324e

Browse files
committed
Ensure FixedMaps always use same key ordering, regardless of OTP version
1 parent 6a749ee commit aa6324e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/type_check/builtin.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ defmodule TypeCheck.Builtin do
930930
end)
931931

932932
build_struct(TypeCheck.Builtin.FixedMap)
933-
|> Map.put(:keypairs, Enum.into(keywords, []))
933+
|> Map.put(:keypairs, Enum.sort(keywords))
934934
end
935935

936936
@doc typekind: :extension

0 commit comments

Comments
 (0)