File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -547,11 +547,10 @@ class Parser {
547
547
ParsedTokenSyntax consumeIdentifierSyntax (bool allowDollarIdentifier = false ) {
548
548
assert (Tok.isAny (tok::identifier, tok::kw_self, tok::kw_Self));
549
549
550
- Context.getIdentifier (Tok.getText ());
551
-
552
550
if (Tok.getText ()[0 ] == ' $' && !allowDollarIdentifier)
553
551
diagnoseDollarIdentifier (Tok);
554
552
553
+ Tok.setKind (tok::identifier);
555
554
return consumeTokenSyntax ();
556
555
}
557
556
Original file line number Diff line number Diff line change @@ -193,3 +193,5 @@ var _: sr5505 = sr5505 // expected-error {{use of undeclared type 'sr5505'}}
193
193
typealias A = ( inout Int . . . , Int . . . = [ 42 , 12 ] ) -> Void // expected-error {{'inout' must not be used on variadic parameters}}
194
194
// expected-error@-1 {{only a single element can be variadic}} {{35-39=}}
195
195
// expected-error@-2 {{default argument not permitted in a tuple type}} {{39-49=}}
196
+
197
+ typealias rdar55075237 = Int . self // expected-error {{'self' is not a member type of 'Int'}}
You can’t perform that action at this time.
0 commit comments