diff options
author | Patrik Nyblom <[email protected]> | 2012-02-07 16:05:14 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2012-02-07 16:05:14 +0100 |
commit | e9e34e8bd838ef99ed3bd0e88ff490614cbe78a1 (patch) | |
tree | aa20fea8c921b3460f8868ce905a4e2243d34dac /lib/stdlib | |
parent | 8853793b0edd01947829840f90c91a1e2468cc36 (diff) | |
parent | a02909a11a33880b486135b396aabfd3060b8d8d (diff) | |
download | otp-e9e34e8bd838ef99ed3bd0e88ff490614cbe78a1.tar.gz otp-e9e34e8bd838ef99ed3bd0e88ff490614cbe78a1.tar.bz2 otp-e9e34e8bd838ef99ed3bd0e88ff490614cbe78a1.zip |
Merge branch 'pan/bif_specs/OTP-9684'
* pan/bif_specs/OTP-9684:
Correct docs, comments and dialyzer tests
Reintroduce sensitive BIFs in erl_bif_types
Correct dializer errors in erlang.erl and others
Make erlang doc use specs from erlang.erl
erlang.erl with specs for all (but one) bif
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/ets.erl | 1 | ||||
-rw-r--r-- | lib/stdlib/src/lists.erl | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl index 4a96808810..817b397cc4 100644 --- a/lib/stdlib/src/ets.erl +++ b/lib/stdlib/src/ets.erl @@ -301,6 +301,7 @@ next(_, _) -> prev(_, _) -> erlang:nif_error(undef). +%% Shadowed by erl_bif_types: ets:rename/2 -spec rename(Tab, Name) -> Name when Tab :: tab(), Name :: atom(). diff --git a/lib/stdlib/src/lists.erl b/lib/stdlib/src/lists.erl index d4f14dc8f5..eb527471d5 100644 --- a/lib/stdlib/src/lists.erl +++ b/lib/stdlib/src/lists.erl @@ -43,6 +43,7 @@ %%% BIFs -export([keyfind/3, keymember/3, keysearch/3, member/2, reverse/2]). +%% Shadowed by erl_bif_types: lists:keyfind/3 -spec keyfind(Key, N, TupleList) -> Tuple | false when Key :: term(), N :: pos_integer(), @@ -52,6 +53,7 @@ keyfind(_, _, _) -> erlang:nif_error(undef). +%% Shadowed by erl_bif_types: lists:keymember/3 -spec keymember(Key, N, TupleList) -> boolean() when Key :: term(), N :: pos_integer(), @@ -61,6 +63,7 @@ keyfind(_, _, _) -> keymember(_, _, _) -> erlang:nif_error(undef). +%% Shadowed by erl_bif_types: lists:keysearch/3 -spec keysearch(Key, N, TupleList) -> {value, Tuple} | false when Key :: term(), N :: pos_integer(), @@ -70,6 +73,7 @@ keymember(_, _, _) -> keysearch(_, _, _) -> erlang:nif_error(undef). +%% Shadowed by erl_bif_types: lists:member/2 -spec member(Elem, List) -> boolean() when Elem :: T, List :: [T], @@ -78,6 +82,7 @@ keysearch(_, _, _) -> member(_, _) -> erlang:nif_error(undef). +%% Shadowed by erl_bif_types: lists:reverse/2 -spec reverse(List1, Tail) -> List2 when List1 :: [T], Tail :: term(), |