fpc/tests/webtbs/tw15274.pp
Jonas Maebe 40f88809af * don't error out or generate invalid code for "with x do ;"
(Delphi/TP-compatible, mantis #15274)

git-svn-id: trunk@14370 -
2009-12-08 19:45:08 +00:00

44 lines
405 B
ObjectPascal

{ %norun }
{$mode objfpc}{$H+}
uses
Classes, SysUtils;
type
{ TItem }
TItem = class
public
procedure DoSomething;
end;
{ TConainer }
TContainer = class
public
constructor Create;
end;
{ TConainer }
constructor TContainer.Create;
begin
inherited Create;
with TItem.Create do
;
// begin end;
end;
{ TItem }
procedure TItem.DoSomething;
begin
end;
begin
end.