Cannot access class functions/procedures in type helpers
Original Reporter info from Mantis: africanwilddog
-
Reporter name: African Wild Dog
Original Reporter info from Mantis: africanwilddog
- Reporter name: African Wild Dog
Description:
Access to class functions/procedures in type helpers is not working in mode delphi.
Steps to reproduce:
Try to compile the project bellow:
=== CODE ===
program Project1;
{$MODE delphi}
uses
SysUtils;
const
NULLSTRING = '';
begin
if String.IsNullOrWhiteSpace(NULLSTRING) then
Writeln('String is empty');
end.
=======
You will get the error: "Fatal: Syntax error, "THEN" expected but "." found"
Additional information:
The same code compiles in Delphi XE 6.
=== CODE ===
program Project1;
uses
SysUtils;
const
NULLSTRING = '';
begin
if String.IsNullOrWhiteSpace(NULLSTRING) then
Writeln('String is empty');
end.
======
Mantis conversion info:
- Mantis ID: 33840
- Version: 3.0.4
- Fixed in version: 3.1.1
- Fixed in revision: 39399 (#441fc2fa)
- Monitored by: » africanwilddog (African Wild Dog)