Create event delegate for uproperty compiler crash

Hi,

The code below crashes the unrealbuildtool. If i move my event declarations outside the class it works… i think it has to do with the combination of UProperty() and the declaration of events. The final error produced is: Unrecognized type ‘FOnConfirmed’

UCLASS(BlueprintType)
class UMyConfirmationDialog : public UUserWidget
{
	GENERATED_BODY()
public:
	UMyConfirmationDialog(const FObjectInitializer& ObjectInitializer);
	/**
	* Should be called from blueprints when the dialog is confirmed
	*/
        DECLARE_EVENT(UMyConfirmationDialog, FOnConfirmed);
	UPROPERTY(BlueprintAssignable, Category = "UI")
		FOnConfirmed OnConfirmed;

	/**
	* Should be called from blueprints when the dialog is cancelled
	*/
        DECLARE_EVENT(UMyConfirmationDialog, FOnCancelled);
	UPROPERTY(BlueprintAssignable, Category = "UI")
		FOnCancelled OnCancelled;

.... some more code here..
};

I already found out… it has to do with the fact that event delegates can’t be exposed to blueprints and therefore can’t be uproperty? I fixed it by replacing the event with a DECLARE_DYNAMIC_MULTICAST_DELEGATE and defining that one outside of the class.