tb0127.pp 405 B

1234567891011121314151617181920212223242526
  1. { %version=1.1 }
  2. { %fail }
  3. { Interfaces only supported in v1.1 }
  4. { Should give the same error as /tbf/tb0125.pp }
  5. {$ifdef fpc}
  6. {$mode delphi}
  7. {$endif}
  8. type
  9. tinterface = interface
  10. procedure x;
  11. end;
  12. tderivedinterface = interface(tinterface)
  13. procedure x;
  14. end;
  15. procedure testintparam(var i : tinterface);
  16. begin
  17. end;
  18. var
  19. t1 : tderivedinterface;
  20. begin
  21. testintparam(t1);
  22. end.