tw1935.pp 752 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. { %version=1.1 }
  2. {$ifdef fpc}
  3. {$mode objfpc}
  4. {$endif}
  5. type
  6. TCls = class
  7. public
  8. procedure build (a, b, c: LongInt);overload;
  9. procedure build (a, b, c, d: LongInt);overload;
  10. end;
  11. const
  12. err : boolean=true;
  13. procedure TCls.build (a, b, c: LongInt);
  14. procedure subproc;
  15. begin
  16. writeln ('a, b, c');
  17. err:=false;
  18. end;
  19. begin
  20. subproc;
  21. end;
  22. procedure TCls.build (a, b, c, d: LongInt);
  23. procedure subproc;
  24. begin
  25. writeln ('a, b, c, d');
  26. end;
  27. begin
  28. end;
  29. var
  30. C: TCls;
  31. begin
  32. C := TCls.create;
  33. C.build (1, 2, 3);
  34. if err then
  35. halt(1);
  36. end.