major property bug
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
problem:
assigning a method to a event/method property
bug:
the instance pointer is not set correctly.
This results in buggy code:
FTest.OnTest := DoTest;
Non buggy alternatives:
Prepend SELF:
FTest.OnTest := SELF.DoTest;
Access method field directly (skip property)
FTest.FOnTest := DoTest
Additional information:
Reporter: N. Hug
EMail: hug__ at t-online dot de
Mantis conversion info:
- Mantis ID: 4455
- OS: WIN32
- Version: 1.1.0
- Fixed in version: 1.1.0