Add test for trailing return.

This commit is contained in:
Chandler Cox
2024-10-28 22:15:34 -05:00
parent a1c7132e48
commit 8a31d1b54f

View File

@@ -172,6 +172,12 @@ public:
return str.Length();
}
// Test trailing return type
API_FUNCTION() auto TestTrailingReturn(int32 number) -> float
{
return static_cast<float>(number);
}
int32 TestInterfaceMethod(const String& str) override
{
return str.Length();