Internal error when a : is used after a void method call

.NET .1695

Hello,
create a new Console application and replace Program.pas with:

namespace ConsoleApplication1;
 
interface
 
  type
    Program = class
    public
      class method Main (args : array of String) : Int32;
    end;
 
implementation
 
  class method Program.Main (args : array of String) : Int32;
  begin
    writeLn ('The magic happens here.'):
    writeLn ('The magic happens here.')
  end;
 
end.

Compile:

error E0: Internal error: Object reference not set to an instance of an object.

The culprit is the first call to writeLn that is ended with a colon, instead a semicolon.

Thanks, logged as bugs://71041

bugs://71041 got reopened.

bugs://71041 got closed with status fixed.