Is this an expected behavior? Thanks.
That's a bug (cause it compiles in mode
Delphi with the
@s removed). However it compiles with 3.3.1, so it's been fixed in the meantime. If someone bisects the commit that fixed it between 3.2.0 and current head then I might be able to merge it to 3.2.3.
Add static and get ¨
project1.lpr(25,29) Error: Incompatible type for arg no. 1: Got "<class method type of procedure of object;Register>", expected "<procedure variable type of procedure of object;Register>"
The compiler should probably add a “static” to the method description to make the issue clearer...

Without static result is
project1.lpr(25,3) Error: Internal error 200408162
What platform? What compiler version? I don't get an internal error on
x86_64-win64 with 3.2.2, only the compile error that
simone got. And no error at all with 3.3.1.