fpc/tests/webtbs/tw2956.pp
2004-02-20 16:15:21 +00:00

28 lines
563 B
ObjectPascal

{ Source provided for Free Pascal Bug Report 2956 }
{ Submitted by "Marco (Gory Bugs Department)" on 2004-02-08 }
{ e-mail: }
program something;
{$mode Delphi}
Uses uw2956;
type
localclassfields = class(aclasswithfields)
end;
classwithmethod = class
procedure xx;
end;
procedure classwithmethod.xx;
var ll : aclasswithfields;
begin
writeln(localclassfields(ll).field1); // goes ok.
with localclassfields(ll) do // typecast.
writeln(field1);
end;
begin
end.