File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1195,8 +1195,10 @@ ParserResult<TypeRepr> Parser::parseTypeTupleBody() {
1195
1195
if (EllipsisLoc.isInvalid ())
1196
1196
EllipsisIdx = ElementsR.size ();
1197
1197
1198
- bool isFunctionType = Tok.isAny (tok::arrow, tok::kw_throws,
1199
- tok::kw_rethrows);
1198
+ bool isFunctionType =
1199
+ Tok.isAny (tok::arrow, tok::kw_throws, tok::kw_rethrows) ||
1200
+ (shouldParseExperimentalConcurrency () &&
1201
+ Tok.isContextualKeyword (" async" ));
1200
1202
1201
1203
// If there were any labels, figure out which labels should go into the type
1202
1204
// representation.
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ func asyncGlobal2() async throws { }
5
5
6
6
typealias AsyncFunc1 = ( ) async -> ( )
7
7
typealias AsyncFunc2 = ( ) async throws -> ( )
8
+ typealias AsyncFunc3 = ( _ a: Bool , _ b: Bool ) async throws -> ( )
8
9
9
10
func testTypeExprs( ) {
10
11
let _ = [ ( ) async -> ( ) ] ( )
You can’t perform that action at this time.
0 commit comments