@@ -68,12 +68,11 @@ class C1 {
6868 func run( a: Int ) { }
6969}
7070
71- class C2 : C1 , P {
72- // expected-note@-1 2{{through reference here}}
71+ class C2 : C1 , P { // expected-note@:7 {{through reference here}}
7372 override func run( a: A ) { }
74- // expected-error@-1 {{circular reference}}
75- // expected-note@-2 {{while resolving type 'A'}}
76- // expected-note@-3 2 {{through reference here}}
73+ // expected-error@-1:19 {{circular reference}}
74+ // expected-note@-2:26 {{while resolving type 'A'}}
75+ // expected-note@-3:23 {{through reference here}}
7776}
7877
7978// Another crash to the above
@@ -84,12 +83,12 @@ open class G1<A> {
8483class C3 : G1 < A > , P {
8584 // expected-error@-1 {{type 'C3' does not conform to protocol 'P'}}
8685 // expected-error@-2 {{cannot find type 'A' in scope}}
87- // expected-note@-3 2 {{through reference here}}
86+ // expected-note@-3:7 {{through reference here}}
8887 // expected-note@-4 {{add stubs for conformance}}
8988 override func run( a: A ) { }
90- // expected-error@-1 {{circular reference}}
91- // expected-note@-2 2 {{through reference here }}
92- // expected-note@-3 {{while resolving type 'A' }}
89+ // expected-error@-1:19 {{circular reference}}
90+ // expected-note@-2:26 {{while resolving type 'A' }}
91+ // expected-note@-3:23 {{through reference here }}
9392}
9493
9594// Another case that triggers circular override checking.
@@ -102,10 +101,10 @@ class C4 {
102101 required init ( x: Int ) { }
103102}
104103
105- class D4 : C4 , P1 { // expected-note 4 {{through reference here}}
106- required init ( x: X ) { // expected-error {{circular reference}}
107- // expected-note@-1 {{while resolving type 'X'}}
108- // expected-note@-2 2 {{through reference here}}
104+ class D4 : C4 , P1 { // expected-note@:7 {{through reference here}}
105+ required init ( x: X ) { // expected-error@:12 {{circular reference}}
106+ // expected-note@-1:20 {{while resolving type 'X'}}
107+ // expected-note@-2:17 {{through reference here}}
109108 super. init ( x: x)
110109 }
111110}
@@ -114,6 +113,6 @@ class D4 : C4, P1 { // expected-note 4 {{through reference here}}
114113// N.B. This used to compile in 5.1.
115114protocol P_54662 { }
116115class C_54662 { // expected-note {{through reference here}}
117- typealias Nest = P_54662 // expected-error {{circular reference}} expected-note {{through reference here}}
116+ typealias Nest = P_54662 // expected-error {{circular reference}}
118117}
119118extension C_54662 : C_54662 . Nest { }
0 commit comments