title: Erlang beam_lib chunks is broken?
body: <p>I've tried to decompile .beam file (compiled from elixir code)</p>
  
  <p>I used this escript </p>
  
  <pre><code>main([BeamFile]) -&gt;
      {ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]),
      io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
  </code></pre>
  
  <p>Which generated a file. But on compiling this code again I get error on '-spec' annotation</p>
  
  <pre><code>lib/renlim.erl:7: syntax error before: '{'
  </code></pre>
  
  <p>The code is unchanged. Is it related to new Erlang version or am I doing something wrong?</p>
  
  <p><img src="https://i.stack.imgur.com/nhCZ5.png" alt="Erlang spec Error"></p>