File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1094,6 +1094,8 @@ Parser::TypeResult Parser::parseTypeTupleBody() {
1094
1094
} else {
1095
1095
if (!Backtracking)
1096
1096
diagnose (Tok, diag::expected_parameter_colon);
1097
+ NameLoc = SourceLoc ();
1098
+ SecondNameLoc = SourceLoc ();
1097
1099
}
1098
1100
} else if (InOut) {
1099
1101
// If we don't have labels, 'inout' is not a obsoleted use.
Original file line number Diff line number Diff line change @@ -5,14 +5,20 @@ class C {
5
5
typealias Inner : Foo = Int
6
6
7
7
typealias Alias1 = [ Generic< Int
8
- typealias Alias 2 = ( ) -> ( a b : [ Generic < Int
8
+
9
9
10
10
// Implict accessor with attribute at the top of its body.
11
11
var x : Int {
12
12
@objc
13
13
func f( ) { }
14
14
}
15
15
}
16
+ do {
17
+ typealias Alias2 = ( ) -> ( a b: [ Generic< Int
18
+ }
19
+ do {
20
+ typealias Alias3 = ( a b C,
21
+ }
16
22
17
23
// Orphan '}' at top level
18
24
}
You can’t perform that action at this time.
0 commit comments