It loses the newline at the end of the #! line and ends up commenting out the subsequent line. Here's a repro in AST Explorer: (linked)