@@ -68,12 +68,11 @@ class C1 {
68
68
func run( a: Int ) { }
69
69
}
70
70
71
- class C2 : C1 , P {
72
- // expected-note@-1 2{{through reference here}}
71
+ class C2 : C1 , P { // expected-note@:7 {{through reference here}}
73
72
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}}
77
76
}
78
77
79
78
// Another crash to the above
@@ -84,12 +83,12 @@ open class G1<A> {
84
83
class C3 : G1 < A > , P {
85
84
// expected-error@-1 {{type 'C3' does not conform to protocol 'P'}}
86
85
// 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}}
88
87
// expected-note@-4 {{add stubs for conformance}}
89
88
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 }}
93
92
}
94
93
95
94
// Another case that triggers circular override checking.
@@ -102,10 +101,10 @@ class C4 {
102
101
required init ( x: Int ) { }
103
102
}
104
103
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}}
109
108
super. init ( x: x)
110
109
}
111
110
}
@@ -114,6 +113,6 @@ class D4 : C4, P1 { // expected-note 4 {{through reference here}}
114
113
// N.B. This used to compile in 5.1.
115
114
protocol P_54662 { }
116
115
class 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}}
118
117
}
119
118
extension C_54662 : C_54662 . Nest { }
0 commit comments