⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testbogustypes.out

📁 格式化源码的最新板
💻 OUT
字号:
unit TestBogusTypes;

{ AFS 5 May 2K
 This unit compiles but is not semantically meaningfull
 it is test cases for the code formatting utility

 Test use of type names in other contexts
 This is most likly the most pathalogical of all the test cases
 don't code like this, please
}

interface

type

  Fred = class

  public
    { these are well known but not built-in and so are legal to redefine here }
    procedure word;
    procedure DWord;
    function TComponent(ps: string): string;

  end;

procedure byte;

function AnsiChar(pi: integer): string;

const
  int64 = 'Hello world';


implementation

{ Fred }

procedure byte;
begin
end;

function AnsiChar(pi: integer): string;
begin
  byte;
  Result := '';
end;

procedure Fred.DWord;
begin
  // not a type cast
  AnsiChar(3);
end;

function Fred.TComponent(ps: string): string;
begin
  Result := '';
end;

procedure Fred.word;
begin
  DWord;
  // not a type cast
  TComponent(AnsiChar(42));
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -