I created a new WPF application and put this in Window1.xaml.pas:
type
Window1 = public partial class(System.Windows.Window)
private
class var ClassVar: Integer;
InstanceVar: Integer;
method InstanceMethod;
public
constructor;
end;
implementation
constructor Window1;
begin
InitializeComponent();
end;
method Window1.InstanceMethod;
begin
InstanceVar := 1;
ClassVar := 1;
end;
The flyover hint for both InstanceVar and ClassVar both claim “(local variable)”.