fpc/tests/webtbf/tw31465.pp
svenbarth ece13bcc5a * fix for Mantis #31465: only consider non-static fields when checking whether a record may be used with Default()
+ added test (Note: the test fails due to missing = operator, but without the fix there was a stack overflow)

git-svn-id: trunk@35508 -
2017-03-03 17:03:46 +00:00

26 lines
298 B
ObjectPascal

{ %FAIL }
program tw31465;
{$MODE DELPHI}
uses
FGL;
type
THWAddr = record
public type
THWBytes = array [0..5] of Byte;
private
FValue: THWBytes;
public
class var Empty: THWAddr;
class var Broadcast: THWAddr;
end;
TGWCache = class(TFPGList<THWAddr>);
begin
end.