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 / tw4294.pp
Size: Mime:
{ Source provided for Free Pascal Bug Report 4294 }
{ Submitted by "Martin Schreiber" on  2005-08-19 }
{ e-mail:  }
unit tw4294;
interface
{$ifdef fpc}{$mode objfpc}{$endif}
{$H+}

const
 widestrconst = widestring('abc');
 ansistrconst = 'abc';

procedure wtest(const par1: widestring = widestrconst);
procedure atest(const par1: string = ansistrconst);

implementation

procedure atest(const par1: string = ansistrconst); //ok
begin
end;

procedure wtest(const par1: widestring = widestrconst); //error
//procedure wtest(const par1: widestring);              //ok
begin
end;

end.