fpc/tests/webtbs/tw29030.pp
Jonas Maebe 9ea38f4577 * support static fields in nested types in records, by always including
support for nested types when generating an access to a static fied;
    we also always do that when generating the mangled name of a static
    field declaration in symcreat.make_field_static() (mantis )

git-svn-id: trunk@32517 -
2015-11-24 16:04:19 +00:00

20 lines
305 B
ObjectPascal

program fpc_nestedtype_ice;
{$mode delphiunicode}
Type
TRec = Record
Type
NestedType = Record
Class Var
FVar : Integer;
Class Property Variable : Integer Read FVar Write FVar;
End;
End;
Begin
TRec.NestedType.Variable := 1;
if TRec.NestedType.Variable<>1 then
halt(1);
End.