Skip to content

Commit f579fc8

Browse files
committed
---
yaml --- r: 349325 b: refs/heads/master-next c: c56421c h: refs/heads/master i: 349323: 5ce2ebc
1 parent a367974 commit f579fc8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 9eb4c216ee097ce01650f14452d6d0b258d3e09e
3+
refs/heads/master-next: c56421c5be1c32481f710d635daf03027f6a2171
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/Parse/ParseDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,8 @@ void Parser::diagnoseConsecutiveIDs(StringRef First, SourceLoc FirstLoc,
34683468

34693469
diagnose(Tok, diag::repeated_identifier, DeclKindName);
34703470
auto Second = Tok.getText();
3471-
auto SecondLoc = consumeToken();
3471+
auto SecondLoc = Tok.getLoc();
3472+
ignoreToken();
34723473

34733474
SourceRange FixRange(FirstLoc, SecondLoc);
34743475
// Provide two fix-its: a direct concatenation of the two identifiers

branches/master-next/test/Syntax/round_trip_misc.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ do {
2828
do {
2929
typealias Alias = A & B & C.D<>
3030
}
31+
do {
32+
typealias boo bar = Int
33+
}
3134

3235
// Orphan '}' at top level
3336
}

0 commit comments

Comments
 (0)