fpc/tests/test/jvm/twith.pp
Jonas Maebe 740e7ca6b5 + a bunch of jvm-specific tests: partly new, partly derived from existing
tests
   o currently not yet integrated in the makefile system, use testall.sh/
     testall.bat to run the tests

git-svn-id: branches/jvmbackend@18777 -
2011-08-20 08:35:11 +00:00

28 lines
291 B
ObjectPascal

program twith;
{$mode delphi}
type
twithbase = class
end;
twithchild = class(twithbase)
procedure test; virtual;
end;
procedure twithchild.test;
begin
end;
function func: twithbase;
begin
result:=twithchild.create;
end;
begin
with twithchild(func) do
test;
end.