Description

Compilation will fails with an error on TSubclassOf<UDEPRECATED_SomeData>

 

 

Steps to Reproduce

Add the following code to a project and compile (Make to update XXX_API macro):

 

--------------------------------------------

UCLASS(Deprecated)
class GYMCODE424_API UDEPRECATED_SomeData : public UObject
{
GENERATED_BODY()

public:
UPROPERTY(EditAnywhere, BlueprintReadOnly)
FText Message;
};

/**
*
*/
UCLASS()
class GYMCODE424_API ASomeTestsGameModeBase : public AActor
{

GENERATED_BODY()

public:
// UFUNCTION(BlueprintImplementableEvent)
UFUNCTION(BlueprintImplementableEvent, meta = (DeprecatedFunction, DeprecationMessage = "Use OnNewDataReceivedEvent() instead."))
void OnDataReceivedEvent(TSubclassOf<UDEPRECATED_SomeData>& InData_DEPRECATED, const FHitResult& HitResult);
//void OnDataReceivedEvent(TSubclassOf<UObject>& InData, const FHitResult& HitResult);

UFUNCTION(BlueprintImplementableEvent)
void OnNewDataReceivedEvent(FText& InMessage, const FHitResult& HitResult);

UPROPERTY(meta = (DeprecatedProperty, DeprecationMessage = "Data is Depricated member"))
UDEPRECATED_SomeData* Data_DEPRECATED;

UPROPERTY(EditAnywhere)
FHitResult DefaultHitResult;

protected:
void BeginPlay() override {};
};

 

--------------------------------------

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-87673 in the post.

1
Login to Vote

Fixed
Fix Commit16938132
Main Commit17014970
CreatedJan 29, 2020
ResolvedJul 23, 2021
UpdatedNov 1, 2021
View Jira Issue