diff options
author | Hans Bolinder <[email protected]> | 2016-12-24 17:24:05 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-01-11 09:34:59 +0100 |
commit | 66d387c039156989a6ea834033888ac50f1efc1e (patch) | |
tree | 9d432a120af6f38ff44a7107aed9f9304d0ba2be /lib/typer | |
parent | 8786ac9ef56e34c6c2910320d2b291452853b034 (diff) | |
download | otp-66d387c039156989a6ea834033888ac50f1efc1e.tar.gz otp-66d387c039156989a6ea834033888ac50f1efc1e.tar.bz2 otp-66d387c039156989a6ea834033888ac50f1efc1e.zip |
dialyzer: Use maps instaed of dict
Diffstat (limited to 'lib/typer')
-rw-r--r-- | lib/typer/src/typer.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/typer/src/typer.erl b/lib/typer/src/typer.erl index 88b654693b..bf971ff152 100644 --- a/lib/typer/src/typer.erl +++ b/lib/typer/src/typer.erl @@ -226,7 +226,7 @@ get_external(Exts, Plt) -> -type fa() :: {atom(), arity()}. -type func_info() :: {line(), atom(), arity()}. --record(info, {records = map__new() :: map_dict(), +-record(info, {records = maps:new() :: erl_types:type_table(), functions = [] :: [func_info()], types = map__new() :: map_dict(), edoc = false :: boolean()}). @@ -269,7 +269,7 @@ write_inc_files(Inc) -> Functions = [Key || {Key, _} <- Val], Val1 = [{{F,A},Type} || {{_Line,F,A},Type} <- Val], Info = #info{types = map__from_list(Val1), - records = map__new(), + records = maps:new(), %% Note we need to sort functions here! functions = lists:keysort(1, Functions)}, %% io:format("Types ~p\n", [Info#info.types]), |