Expand records bug?

Maria Christakis mchris@REDACTED
Thu Jan 6 11:26:55 CET 2011


Hello,

We are currently working on a project that requires that 
all records are expanded to tuples. So,
we have been using the erl_expand_records:module/2 
function, but we realized that it does not
affect types. For example, for the code shown below:

-module(test).

-export([foo/0]).

-record(myrec, {foo :: integer(), bar :: integer()}).

-type mytype() :: #myrec{}.

foo() -> bar.

the record definition is removed because of the expansion, 
but the type is not handled/changed,
resulting in a compiler error about record myrec being 
undefined. Is this a bug? Will there be
handling of types?

Thank you,
Maria



More information about the erlang-bugs mailing list