C1057: Wrong return type for <FunctionKind>

[ERROR]

Description

The declaration of a function of FunctionKind contained an illegal return type.

Tips

Depending on FunctionKind: