Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw3840.pp
Size: Mime:
{ Source provided for Free Pascal Bug Report 3840 }
{ Submitted by "Alexey Barkovoy" on  2005-03-27 }
{ e-mail: clootie@ixbt.com }

{$mode objfpc}

const
  sConst =  'X';

procedure Do1(const w: PWideChar);
begin
  writeln(Widestring(w));
end;

begin
  Do1(sConst); //Error: Incompatible type for arg no. 1: Got "Char", expected "PWideChar"
  Do1('W');    //Error: Incompatible type for arg no. 1: Got "Char", expected "PWideChar"
  Do1('WW');   // SUCCEEDED
end.