GENERATED_BODY macro causes error "this declaration has no storage class or type specifier"

I was losing my mind over this, thanks

This happens when you have installed Unreal Engine 5.1 an higher (my Version 5.3.2 November 2023) and don’t have the .NET 6.0 SDK installed. So, make sure to install the .NET 6.0 SDK. I had the same problem and this resolved it!

Thank you!!!