From 4d64020cbefff673c840bdd5fa136fa1c570651d Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 9 Mar 2010 08:34:44 +0000 Subject: 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. --- lib/stdlib/src/epp.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/stdlib/src/epp.erl') 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). -- cgit v1.2.3