Skip to content

Commit 6a5522f

Browse files
committed
[Syntax] Fix type syntax tests for 'async'.
1 parent 6ff46ae commit 6a5522f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/Syntax/TypeSyntaxTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ TEST(TypeSyntaxTests, FunctionTypeMakeAPIs) {
471471
auto Int = SyntaxFactory::makeTypeIdentifier("Int", {}, {});
472472
auto IntArg = SyntaxFactory::makeBlankTupleTypeElement()
473473
.withType(Int);
474-
auto Async = SyntaxFactory::makeContextualKeyword(
474+
auto Async = SyntaxFactory::makeIdentifier(
475475
"async", { }, { Trivia::spaces(1) });
476476
auto Throws = SyntaxFactory::makeThrowsKeyword({}, { Trivia::spaces(1) });
477477
auto Rethrows = SyntaxFactory::makeRethrowsKeyword({},

0 commit comments

Comments
 (0)