fpc/tests/webtbs/tw8861.pp
peter 73d861e3e9 * test for parameter symoptions
git-svn-id: trunk@7322 -
2007-05-12 22:16:58 +00:00

35 lines
529 B
ObjectPascal

{$mode objfpc}{$H+}
uses
Classes, SysUtils
{ add your units here };
type
TNotifyEventExt = procedure(ASender: TObject; ANotifyType: integer) of
object;
TNotify = class
strict private
FOnNotify: TNotifyEventExt;
strict protected
procedure test;
public
constructor Create;
end;
constructor TNotify.Create;
begin
inherited Create;
FOnNotify := nil;
end;
procedure TNotify.test;
begin
FOnNotify(nil, 0); //project1.pas(30,13) Fatal: Syntax error, ";" expected but "(" found
end;
begin
end.