fork download
  1. program ideone;
  2. {$mode objfpc}{$H+}
  3.  
  4. type TRecord = record
  5. class operator Implicit(Foo: Integer): TRecord;
  6. end;
  7.  
  8.  
  9. class operator TRecord.Implicit(Foo: Integer): TRecord;
  10. begin
  11. //...
  12. end;
  13.  
  14. begin
  15. end.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.6.4+dfsg-6 [2015/05/31] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling prog.pas
prog.pas(5,2) Fatal: Syntax error, "identifier" expected but "CLASS" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty