Reported By: Michael Dreher Reported On: 7/27/2017 For: Version 2.06 Build 5
# 4571Invalid Typecasts Not Causing Compilation Error I've declared some classes in different units and made a bug. It compiles but of course the output isn't something useful.
It would be nice if the compiler report an error.
type
TCell = class public
actor : TObject;
map : TObject;
end;
TActor = class public
cell : TCell;
end;
TMap = class end;
procedure Move(actor : TActor);
var map : TMap;
begin
map := Map(actor.cell.map); // <<<---- here
// shound be...
map := TMap(actor.cell.map);
and;
ResolutionFixed Problem on 7/28/2017 in version 2.06 build 6
Products AffectedElevate Web Builder Elevate Web Builder Trial