fpc/tests/test/tchlp83.pp
svenbarth bb55a59aaf Added some more tests
* one default properties test
* visibility of extended type's symbols
* class constructors (I don't know currently whether they are supported or not, because Delphi XE does not bring the "class constructor not allowed" error, but an internal error is created; maybe I should file a bug about this, too)

git-svn-id: branches/svenbarth/classhelpers@17098 -
2011-03-09 15:51:26 +00:00

27 lines
337 B
ObjectPascal

{ %FAIL }
{ test visibility of symbols in the extended type - private }
program tchlp83;
{$ifdef fpc}
{$mode delphi}
{$endif}
{$apptype console}
uses
uchlp82;
type
TFooHelper = class helper for TFoo
function AccessField: Integer;
end;
function TFooHelper.AccessField: Integer;
begin
Result := Test2;
end;
begin
end.