E2253 Calling convention must be attributed to the function type, not the closure (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

The calling convention is in the wrong place in the closure declaration. For example,

int __fastcall (__closure * x)()

will compile, but

int (__fastcall __closure * x)()

will not.