aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-03-09 08:34:44 +0000
committerErlang/OTP <[email protected]>2010-03-09 09:37:14 +0100
commit4d64020cbefff673c840bdd5fa136fa1c570651d (patch)
tree604ff39c942a44120dca7407c122fa318b805f0f /lib/stdlib/src
parent96015189f40635d0f617eed2b6d4d6ee773e1fd5 (diff)
downloadotp-4d64020cbefff673c840bdd5fa136fa1c570651d.tar.gz
otp-4d64020cbefff673c840bdd5fa136fa1c570651d.tar.bz2
otp-4d64020cbefff673c840bdd5fa136fa1c570651d.zip
OTP-8503 stdlib: records with no fields is considered typed by epp
The empty record (no fields) is now considered typed. It is more consistent than before; the base case is the logical one. A record is typed iff all its fields are typed. A record is tagged 'typed' iff it is typed.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/epp.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/src/epp.erl b/lib/stdlib/src/epp.erl
index 2aa52ea84a..e1b569d389 100644
--- a/lib/stdlib/src/epp.erl
+++ b/lib/stdlib/src/epp.erl
@@ -176,6 +176,8 @@ parse_file(Epp) ->
[{eof,Location}]
end.
+normalize_typed_record_fields([]) ->
+ {typed, []};
normalize_typed_record_fields(Fields) ->
normalize_typed_record_fields(Fields, [], false).