tdefault16.pp 224 B

123456789101112131415161718
  1. { %FAIL }
  2. { %target=darwin }
  3. { Objective C types are disallowed as well }
  4. program tdefault16;
  5. {$mode objfpc}
  6. {$modeswitch objectivec1}
  7. type
  8. TTest = objcprotocol
  9. end;
  10. var
  11. t: TTest;
  12. begin
  13. t := Default(TTest);
  14. end.