Add test for trailing return.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user