Illegal expression for Self parameter in class static procedure in record/class
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
Hi,
I can't compile attached code (in Delphi is ok):
type
TRec = record { or class }
class procedure Foo(Self: TObject); static;
end;
class procedure TRec.Foo(Self: TObject);
begin
Self.ClassName; // Error: Illegal expression... Why? o__O
end;
Mantis conversion info:
- Mantis ID: 24871
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 25273 (#89e154bc)