Hallo!<br>I have found some strange parser behavior with a list of records.<br>The bug has been verified on Erlang R14B03, on Ubuntu 11.04 Linux and Mac OS X.<br><br>-------------------- Test Module<br><br>-module(bugtest).<br>
-export([test/0]).<br>
<br>-record(rec, {x}).<br><br>test() -><br> [#rec{x = 1},<br> #rec{x = 2} % <-- missing comma<br> #rec{x = 3}].<br><br>-------------------- Shell Output<br>Eshell V5.8.4 (abort with ^G)<br>1> c(bugtest).<br>
{ok,bugtest} <br>2> bugtest:test().<br>[{rec,1},{rec,3}]