diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-20 19:09:36 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-06-20 19:09:36 +0300 |
commit | 27a1771deba502de1894d2f7772914fe8eedc3db (patch) | |
tree | ea25cb0ad40c36cfd8af35a8d454ca8df0d2f016 | |
parent | c318b5f8a235d5c5d26146f2ec28a1bf0aba7b82 (diff) |
Fix creation of type spec for map() options
-rwxr-xr-x | tools/opt_types.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt_types.sh b/tools/opt_types.sh index 516def304..a8e12bb60 100755 --- a/tools/opt_types.sh +++ b/tools/opt_types.sh @@ -417,7 +417,7 @@ spec(options, A, [Form|OForm], Mod) when A == 1; A == 2 -> end, {erl_types:t_none(), erl_types:t_none()}, Fs), case options_return_type(OForm) of map -> - erl_types:t_map(lists:flatten(Els), DefK, DefV); + erl_types:t_map(lists:keysort(1, lists:flatten(Els)), DefK, DefV); dict -> t_remote(dict, dict); _ -> |