aboutsummaryrefslogtreecommitdiffstats
path: root/otp_patch_apply
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-06-20 15:35:38 +0200
committerBjörn Gustavsson <[email protected]>2016-06-22 13:07:05 +0200
commit1c7526a30444a0e3f0bc038ae5894d63b7914e46 (patch)
treead9fc4511fc78957b225ccf4f8fd5d4ed85e9a9f /otp_patch_apply
parenteb9766ca5d507d8cb8e1448780f96ba1cb45ff36 (diff)
downloadotp-1c7526a30444a0e3f0bc038ae5894d63b7914e46.tar.gz
otp-1c7526a30444a0e3f0bc038ae5894d63b7914e46.tar.bz2
otp-1c7526a30444a0e3f0bc038ae5894d63b7914e46.zip
erl_internal: Eliminate duplication of guard tests
Guard tests (e.g. is_list/1) are listed both in guard_bif/2 and in new_type_test/2. That is a trap for anyone who wants to add a new guard test. Let guard_bif/2 call new_type_test/2 so that new guard tests only have to be added in one place. While we are it, also sort the clauses in guard_bif/2 and new_type/2.
Diffstat (limited to 'otp_patch_apply')
0 files changed, 0 insertions, 0 deletions