This never worked. in fact we just fixed to allow this in undefined code, for
bugs://E26068: Delphi Compatibility: Cannot use attribute on local variable, in undefined code, eg
on your request from Build error with conditional defines; using attributes on local variables - #6 by mh.
namespace AttributesNotAllowedLocalVariables;
interface
{$IF NOT ELEMENTS}
procedure DoSomething;
{$ENDIF}
implementation
{$IF NOT ELEMENTS}
procedure DoSomething;
var
//Attributes on local variables used to work with RemObjects Elements with Water - 11.0.0.2743.exe
//But doesn't work anymore with RemObjects Elements with Water - 11.0.0.2767.exe
[&unsafe] name: String;
begin
end;
{$ENDIF}
end.
now will work (and also failed, before).