aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_lint.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-03-07 09:46:27 +0100
committerHans Bolinder <[email protected]>2014-03-07 09:46:27 +0100
commit568a9213dbc195107b23e6604a68b60ff5646f58 (patch)
tree7827da4d5058ca65da8c479b71e09e998c9550eb /lib/stdlib/src/erl_lint.erl
parent4b7beb12a04415181053669a2b578efd6c647182 (diff)
downloadotp-568a9213dbc195107b23e6604a68b60ff5646f58.tar.gz
otp-568a9213dbc195107b23e6604a68b60ff5646f58.tar.bz2
otp-568a9213dbc195107b23e6604a68b60ff5646f58.zip
Emit errors when redefining arity(), bitstring(), iodata(), or boolean()
erl_lint has since R13B emitted warnings whenever any of the types arity(), bitstring(), iodata(), or boolean() were re-defined. Now errors are emitted instead.
Diffstat (limited to 'lib/stdlib/src/erl_lint.erl')
-rw-r--r--lib/stdlib/src/erl_lint.erl6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl
index 10337b279e..269e4b34cf 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -2790,12 +2790,6 @@ is_default_type({timeout, 0}) -> true;
is_default_type({var, 1}) -> true;
is_default_type(_) -> false.
-%% R13
-is_newly_introduced_builtin_type({arity, 0}) -> true;
-is_newly_introduced_builtin_type({bitstring, 0}) -> true;
-is_newly_introduced_builtin_type({iodata, 0}) -> true;
-%% R13B01
-is_newly_introduced_builtin_type({boolean, 0}) -> true;
is_newly_introduced_builtin_type({Name, _}) when is_atom(Name) -> false.
is_obsolete_builtin_type(TypePair) ->