From: Evgeny Khramtsov Date: Thu, 20 Jun 2019 16:09:36 +0000 (+0300) Subject: Fix creation of type spec for map() options X-Git-Tag: 19.08~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a1771deba502de1894d2f7772914fe8eedc3db;p=ejabberd Fix creation of type spec for map() options --- 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); _ ->