summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2014-06-29 21:03:26 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2014-06-29 21:13:54 +0200
commitc22370a2cbd99ab884aeb248faaf254f9c9ea9b0 (patch)
tree2709d3a782085c5301abdbac09c5d52819fb385f
parent5f995bfdc007c7f8c23d2b933a40627c1f311a04 (diff)
Use correct types for OTP >=17.x
-rw-r--r--src/rebar_config.erl2
-rw-r--r--src/rebar_erlc_compiler.erl4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl
index 0127aff..bdc3fb5 100644
--- a/src/rebar_config.erl
+++ b/src/rebar_config.erl
@@ -41,7 +41,7 @@
-ifdef(namespaced_types).
%% dict:dict() exists starting from Erlang 17.
--type rebar_dict() :: dict:dict().
+-type rebar_dict() :: dict:dict(term(), term()).
-else.
%% dict() has been obsoleted in Erlang 17 and deprecated in 18.
-type rebar_dict() :: dict().
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index ae4503b..f628433 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -48,8 +48,8 @@
}).
-ifdef(namespaced_types).
-%% digraph:digraph() exists starting from Erlang 17.
--type rebar_digraph() :: digraph:digraph().
+%% digraph:graph() exists starting from Erlang 17.
+-type rebar_digraph() :: digraph:graph().
-else.
%% digraph() has been obsoleted in Erlang 17 and deprecated in 18.
-type rebar_digraph() :: digraph().