diff options
author | Aleksei Magusev <lexmag@me.com> | 2016-09-28 13:00:48 +0200 |
---|---|---|
committer | Aleksei Magusev <lexmag@me.com> | 2016-09-28 13:08:45 +0200 |
commit | 79a72ae26c745ddac54f1c935722b99f8d5e6d33 (patch) | |
tree | 82dabaed23e965d75a76c4960f3af33500a6d38b | |
parent | 4e681d5fcb3616f26451dd9f2bb49dacc483e7ff (diff) | |
download | elixir-79a72ae26c745ddac54f1c935722b99f8d5e6d33.tar.gz |
Consider is_record/1,2,3 calls in returns_boolean/1 check
-rw-r--r-- | lib/elixir/src/elixir_utils.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/elixir/src/elixir_utils.erl b/lib/elixir/src/elixir_utils.erl index 3bb556d87..f8a69e474 100644 --- a/lib/elixir/src/elixir_utils.erl +++ b/lib/elixir/src/elixir_utils.erl @@ -207,13 +207,13 @@ returns_boolean({{'.', _, [erlang, Fun]}, _, [_]}) when Fun == is_atom; Fun == is_binary; Fun == is_bitstring; Fun == is_boolean; Fun == is_float; Fun == is_function; Fun == is_integer; Fun == is_list; Fun == is_number; Fun == is_pid; Fun == is_port; Fun == is_reference; - Fun == is_tuple; Fun == is_map -> true; + Fun == is_tuple; Fun == is_map; Fun == is_record -> true; returns_boolean({{'.', _, [erlang, Fun]}, _, [_, _]}) when - Fun == is_function -> true; + Fun == is_function; Fun == is_record -> true; returns_boolean({{'.', _, [erlang, Fun]}, _, [_, _, _]}) when - Fun == function_exported -> true; + Fun == function_exported; Fun == is_record -> true; returns_boolean({'case', _, [_, [{do, Clauses}]]}) -> lists:all(fun |