@@ -122,10 +122,10 @@ Overrides.test("contravariant return type override, optional to non-optional") {
122
122
}
123
123
}
124
124
125
- Derived ( ) . foo ( ) as C1
125
+ _ = Derived ( ) . foo ( ) as C1
126
126
expectEqual ( " Derived.foo() -> C1 " , which)
127
127
128
- Derived ( ) . foo ( ) as C1 ?
128
+ _ = Derived ( ) . foo ( ) as C1 ?
129
129
expectEqual ( " Derived.foo() -> C1 " , which)
130
130
}
131
131
@@ -139,10 +139,10 @@ Overrides.test("contravariant return type override, base class to derived class"
139
139
}
140
140
}
141
141
142
- Derived ( ) . foo ( ) as C1
142
+ _ = Derived ( ) . foo ( ) as C1
143
143
expectEqual ( " Derived.foo() -> C1x " , which)
144
144
145
- Derived ( ) . foo ( ) as C1x
145
+ _ = Derived ( ) . foo ( ) as C1x
146
146
expectEqual ( " Derived.foo() -> C1x " , which)
147
147
}
148
148
@@ -156,10 +156,10 @@ Overrides.test("contravariant return type override, optional base class to non-o
156
156
}
157
157
}
158
158
159
- Derived ( ) . foo ( ) as C1
159
+ _ = Derived ( ) . foo ( ) as C1
160
160
expectEqual ( " Derived.foo() -> C1x " , which)
161
161
162
- Derived ( ) . foo ( ) as C1x
162
+ _ = Derived ( ) . foo ( ) as C1x
163
163
expectEqual ( " Derived.foo() -> C1x " , which)
164
164
}
165
165
@@ -180,7 +180,7 @@ Overrides.test("contravariant return type override, protocol to protocol") {
180
180
// Derived().foo() as P1 // error: ambiguous use of 'foo()'
181
181
// expectEqual("Derived.foo() -> P1x", which)
182
182
183
- Derived ( ) . foo ( ) as P1x
183
+ _ = Derived ( ) . foo ( ) as P1x
184
184
expectEqual ( " Derived.foo() -> P1x " , which)
185
185
}
186
186
@@ -201,7 +201,7 @@ Overrides.test("contravariant return type override, protocol to struct") {
201
201
// Derived().foo() as P1 // error: ambiguous use of 'foo()'
202
202
// expectEqual("Derived.foo() -> P1ImplS1", which)
203
203
204
- Derived ( ) . foo ( ) as P1ImplS1
204
+ _ = Derived ( ) . foo ( ) as P1ImplS1
205
205
expectEqual ( " Derived.foo() -> P1ImplS1 " , which)
206
206
}
207
207
0 commit comments