Conditional, in class declaration has stopped working

Hi
The following does not compile using version 10

{$DEFINE TESTDEF}
namespace Oxygene10Problems;

interface

type
TestClass = public partial class {$IFDEF TESTDEF} (Object) {$ENDIF}
private
protected
private
public
end;

implementation

end.

Alex

Yeah. It does work if you put it inside the (). This is one of the big changes in v10. Can you work around this for yoursefl?

no problem, thanks

1 Like