[erlang-questions] [erlang-bugs] parser/preprocessor bug

Vlad Dumitrescu <>
Fri Nov 18 14:16:34 CET 2011


Hi,

On Fri, Nov 18, 2011 at 14:11, Joe Armstrong <> wrote:
> -module(bug).
> -compile(export_all).
> -record(bug,{a}).
> test() ->
>     [#bug{a=1} #bug{a=2}].

It's not a bug, it's the same as

test() ->
    B = #bug{a=1},
    [B#bug{a=2}].

regards,
Vlad



More information about the erlang-questions mailing list