mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 20:47:53 +02:00
36 lines
581 B
ObjectPascal
36 lines
581 B
ObjectPascal
{ Old file: tbs0260.pp }
|
|
{ problem with VMT generation if non virtual method has a virtual overload OK 0.99.12 (PM) }
|
|
|
|
program test;
|
|
|
|
type
|
|
obj1 = object
|
|
st : string;
|
|
constructor init;
|
|
procedure writeit;
|
|
end;
|
|
|
|
obj2 = object(obj1)
|
|
procedure writeit;virtual;
|
|
end;
|
|
|
|
obj3 = object(obj2)
|
|
l : longint;
|
|
end;
|
|
|
|
constructor obj1.init;
|
|
begin
|
|
end;
|
|
|
|
procedure obj1.writeit;
|
|
begin
|
|
end;
|
|
|
|
procedure obj2.writeit;
|
|
begin
|
|
end;
|
|
|
|
|
|
begin
|
|
end.
|