blob: d64b93c26af57a649a06026bb75bc496fda83805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ %FAIL }
{ virtual methods are forbidden in mode objfpc }
program thlp4;
{$ifdef fpc}
{$mode objfpc}
{$endif}
type
TObjectHelper = class helper for TObject
procedure TestVirtual; virtual;
end;
procedure TObjectHelper.TestVirtual;
begin
end;
begin
end.
|