fpc/tests/test/jvm/tprop6a.pp
Jonas Maebe 8634aa8ad2 * fixes for the support for overriding properties on the JVM target:
o only create an accessor wrapping the inherited accessor at a
     potentially lower visibility level if the overriding property
     itself does not specify a different accessor to use
   o simplified code
   o tests

git-svn-id: trunk@27954 -
2014-06-14 10:35:35 +00:00

17 lines
237 B
ObjectPascal

program tprop6a;
uses
tprop6;
var
c: tbaseclassprop6;
d: tderivedclassprop6;
begin
c:=tbaseclassprop6.create;
c.level:=4;
if c.level<>4 then
halt(1);
d:=tderivedclassprop6.create;
d.level:=5;
halt(d.level-6);
end.