Icon View Incident Report

Serious Serious
Reported By: Michael Dreher
Reported On: 11/8/2017
For: Version 2.06 Build 10
# 4600 Compiler Allows Access to Instance Variables/Methods/Properties from Class Methods

I have made a mistake and accidental referenced a class instance variable from a class method. It would be fine if the compiler will report an error in this case.

type
 TMyClass = class public
   i : integer;
   procedure foo;
   class procedure cFoo;
   property GetI : integer read i write i;
 end;

implementation
procedure TMyClass.foo; 
begin 
end;

class procedure TMyClass.cFoo;
begin
 // This all compiles but should be rejected
 i := 42;
 foo;
 GetI := i*2;
end;



Resolution Resolution
Fixed Problem on 11/9/2017 in version 2.06 build 11


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image