File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e48650cc1270740ccb6be5be9b06a45c5cdd9565
2
+ refs/heads/master: 53c6ec8b6bbc9a411f3433ee396d72ab7dff1ec9
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -3383,9 +3383,11 @@ TypeLoc &AssociatedTypeDecl::getDefaultDefinitionLoc() {
3383
3383
3384
3384
SourceRange AssociatedTypeDecl::getSourceRange () const {
3385
3385
SourceLoc endLoc;
3386
- if (auto TWC = getTrailingWhereClause ())
3386
+ if (auto TWC = getTrailingWhereClause ()) {
3387
3387
endLoc = TWC->getSourceRange ().End ;
3388
- else if (!getInherited ().empty ()) {
3388
+ } else if (getDefaultDefinitionLoc ().hasLocation ()) {
3389
+ endLoc = getDefaultDefinitionLoc ().getSourceRange ().End ;
3390
+ } else if (!getInherited ().empty ()) {
3389
3391
endLoc = getInherited ().back ().getSourceRange ().End ;
3390
3392
} else {
3391
3393
endLoc = getNameLoc ();
Original file line number Diff line number Diff line change @@ -245,6 +245,12 @@ protocol FooProtocol {
245
245
// CHECK: <associatedtype>associatedtype <name>Baz</name>: Equatable</associatedtype>
246
246
associatedtype Qux where Qux: Equatable
247
247
// CHECK: <associatedtype>associatedtype <name>Qux</name> where Qux: Equatable</associatedtype>
248
+ associatedtype Bar2 = Int
249
+ // CHECK: <associatedtype>associatedtype <name>Bar2</name> = Int</associatedtype>
250
+ associatedtype Baz2 : Equatable = Int
251
+ // CHECK: <associatedtype>associatedtype <name>Baz2</name>: Equatable = Int</associatedtype>
252
+ associatedtype Qux2 = Int where Qux2 : Equatable
253
+ // CHECK: <associatedtype>associatedtype <name>Qux2</name> = Int where Qux2: Equatable</associatedtype>
248
254
}
249
255
250
256
// CHECK: <struct>struct <name>Generic</name><<generic-param><name>T</name>: <inherited><elem-typeref>Comparable</elem-typeref></inherited></generic-param>, <generic-param><name>X</name></generic-param>> {
Original file line number Diff line number Diff line change 5
5
// RUN: %target-swift-frontend -O -enforce-exclusivity=checked -emit-sil -whole-module-optimization %s | %FileCheck %s --check-prefix=TESTSIL2
6
6
7
7
// REQUIRES: optimized_stdlib,asserts
8
+ // REQUIRES: PTRSIZE=64
8
9
9
10
// TEST1-LABEL: Processing loops in {{.*}}run_ReversedArray{{.*}}
10
11
// TEST1: Hoist and Sink pairs attempt
You can’t perform that action at this time.
0 commit comments