blob: 46c8eed6e61007473afb9edbabfe21ec7dbf084e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ Old file: tbs0045.pp }
{ shows problem with virtual private methods (might not be a true bugs but more of an incompatiblity?) the compiler warns now if there is a private and virtual method }
TYPE
tmyexample =object
public
constructor init;
destructor done; virtual;
private
procedure mytest;virtual; { syntax error --> should give only a
warning ? }
end;
constructor tmyexample.init;
begin
end;
destructor tmyexample.done;
Begin
end;
procedure tmyexample.mytest;
begin
end;
Begin
end.
|