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() {
1800
1800
if (isEffectsSpecifier (peekToken ())) {
1801
1801
BacktrackingScope backtrack (*this );
1802
1802
consumeToken ();
1803
- consumeToken ();
1804
1803
return isAtFunctionTypeArrow ();
1805
1804
}
1806
1805
// 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() { }
29
29
30
30
func testRethrowsWithThrownType( ) rethrows ( MyError) { }
31
31
// 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