mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 12:19:30 +02:00
*** empty log message ***
This commit is contained in:
parent
bec2b2a7d5
commit
edc1765a62
27
tests/webtbs/tbug819.pp
Normal file
27
tests/webtbs/tbug819.pp
Normal file
@ -0,0 +1,27 @@
|
||||
{$mode objfpc}
|
||||
type
|
||||
T1 = class
|
||||
function Get(I: Integer): Integer; virtual; abstract;
|
||||
property T[I: Integer]: Integer read Get; default;
|
||||
end;
|
||||
|
||||
T2 = class(T1)
|
||||
function Get(I: Integer): Integer; override;
|
||||
property T[I: Integer]: Integer read Get; default;
|
||||
end;
|
||||
|
||||
function T2.Get(I: Integer): Integer;
|
||||
begin
|
||||
Result:=I;
|
||||
end;
|
||||
|
||||
var
|
||||
c2 : t2;
|
||||
|
||||
begin
|
||||
c2:=t2.create;
|
||||
if c2[9]<>9 then
|
||||
halt(1)
|
||||
else
|
||||
halt(0);
|
||||
end.
|
Loading…
Reference in New Issue
Block a user