diff --git a/Source/Engine/Tests/TestScripting.h b/Source/Engine/Tests/TestScripting.h index dc05750e1..476060b0b 100644 --- a/Source/Engine/Tests/TestScripting.h +++ b/Source/Engine/Tests/TestScripting.h @@ -172,6 +172,12 @@ public: return str.Length(); } + // Test trailing return type + API_FUNCTION() auto TestTrailingReturn(int32 number) -> float + { + return static_cast(number); + } + int32 TestInterfaceMethod(const String& str) override { return str.Length();