fpc/tests/test/jvm/tprop5.pp
Jonas Maebe 2075dc5a53 * support for raising the visibility of inherited properties on the JVM
target (generate new getters/setters with increased visibility that
    call the inherited ones, if necessary)

git-svn-id: trunk@27940 -
2014-06-12 11:08:44 +00:00

34 lines
460 B
ObjectPascal

{$mode delphi}
{$modeswitch unicodestrings}
{$namespace org.freepascal.test}
Unit tprop5;
interface
uses
jdk15;
type
TBaseClass = class
private
FLevel : integer;
procedure SetLevel(value: integer); virtual;
protected
property Level: Integer read FLevel write SetLevel;
end;
TDerivedClass = class(TBaseClass)
public
property Level;
end;
implementation
procedure TBaseClass.SetLevel(Value: integer);
begin
FLevel := Value;
end;
end.