Invalid Cast from Integer to TObject
The following code compiles with Delphi but not with pas2js.
program Project1;
var
lObject: TObject;
begin
lObject := TObject(1);
end.
The following code compiles with Delphi but not with pas2js.
program Project1;
var
lObject: TObject;
begin
lObject := TObject(1);
end.