Commit c761da7b authored by Brian Gesiak's avatar Brian Gesiak Committed by Facebook GitHub Bot

Remove workaround for co_return with uniform initializer

Summary:
This workaround is no longer necessary for a Clang that includes
patch https://reviews.llvm.org/D76118.

Reviewed By: ispeters, lewissbaker

Differential Revision: D20486353

fbshipit-source-id: cab137ed557ba8aa6ec86ec7011cc4fc7c46fe82
parent 21dc1d37
......@@ -150,13 +150,7 @@ struct TypeWithImplicitMultiValueConstructor {
TEST_F(InlineTaskTest, ReturnValueWithInitializerListSyntax2) {
auto f = []() -> InlineTask<TypeWithImplicitMultiValueConstructor> {
#if 0
// Under clang:
// error: cannot compile this scalar expression yet.
co_return{"hello", 3.1415f};
#else
co_return TypeWithImplicitMultiValueConstructor{"hello", 3.1415f};
#endif
};
auto result = folly::coro::blockingWait(f());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment