File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1800,7 +1800,6 @@ bool Parser::isAtFunctionTypeArrow() {
18001800 if (isEffectsSpecifier (peekToken ())) {
18011801 BacktrackingScope backtrack (*this );
18021802 consumeToken ();
1803- consumeToken ();
18041803 return isAtFunctionTypeArrow ();
18051804 }
18061805 // Don't look for '->' in code completion. The user may write it later.
Original file line number Diff line number Diff line change @@ -29,3 +29,8 @@ func testMissingError() throws() { }
2929
3030func testRethrowsWithThrownType( ) rethrows ( MyError) { }
3131// expected-error@-1{{'rethrows' cannot be combined with a specific thrown error type}}
32+
33+ struct S < Element, Failure: Error > {
34+ init ( produce: @escaping ( ) async throws ( Failure ) -> Element ? ) {
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments