mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-05 15:51:03 +01:00
* test for parameter symoptions
git-svn-id: trunk@7322 -
This commit is contained in:
parent
c831b2fb00
commit
73d861e3e9
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8192,6 +8192,7 @@ tests/webtbs/tw8777g.pp svneol=native#text/plain
|
||||
tests/webtbs/tw8777i.pp svneol=native#text/plain
|
||||
tests/webtbs/tw8810.pp svneol=native#text/plain
|
||||
tests/webtbs/tw8838.pp svneol=native#text/plain
|
||||
tests/webtbs/tw8861.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1873.pp svneol=native#text/plain
|
||||
tests/webtbs/ub1883.pp svneol=native#text/plain
|
||||
tests/webtbs/uw0555.pp svneol=native#text/plain
|
||||
|
||||
34
tests/webtbs/tw8861.pp
Normal file
34
tests/webtbs/tw8861.pp
Normal file
@ -0,0 +1,34 @@
|
||||
{$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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user