Hallo,
we have recently updated our Pascal Script installation from GIT. After the update the following code snippet (cut down to only contain relevant lines) fails to compile at runtime:
procedure CastTest;
var
lData : TClientDataset;
lObject : TObject;
lList : TStringList;
begin
[... more code ...]
if lObject is TStringList then begin
lList := TStringList(lObject);
end; // Compiles!
[... more code ...]
if lObject is TClientDataset then begin
lData := TClientDataset(lObject);
end; // does not Compile: Type mismatch error on the line above
[... more code]
end;
The class “TClientDataSet” is registered upon applications startup. This used to work for years now. But with the latest sources the snippet fails to compile.
Do you have any idea or hint why this code is not compiling?
Thanks in advance,
Ralf