* real bug instead of 2956

This commit is contained in:
peter 2004-03-04 17:19:03 +00:00
parent a813c64e3e
commit a77c934dda
2 changed files with 7 additions and 35 deletions
tests/webtbs

View File

@ -1,26 +1,10 @@
{ Source provided for Free Pascal Bug Report 2956 }
{ Submitted by "Marco (Gory Bugs Department)" on 2004-02-08 }
{ e-mail: }
{ Source provided for Free Pascal Bug Report 2953 }
{ Submitted by "" on 2004-02-07 }
{ e-mail: Marco }
{$mode delphi}
{$mode Delphi}
Uses uw2953;
type
localclassfields = class(aclasswithfields)
end;
classwithmethod = class
procedure xx;
end;
procedure classwithmethod.xx;
var ll : aclasswithfields;
// Next line should give a warning only
//$IF's are evaluated before $IFDEF's
begin
writeln(localclassfields(ll).field1); // goes ok.
with localclassfields(ll) do // typecast.
writeln(field1);
end;
begin
end.
end.

View File

@ -1,12 +0,0 @@
unit uw2953;
{$mode Delphi}
interface
type
aclasswithfields = class
protected
field1:integer;
end;
implementation
end.