@@ -122,10 +122,10 @@ Overrides.test("contravariant return type override, optional to non-optional") {
122122 }
123123 }
124124
125- Derived ( ) . foo ( ) as C1
125+ _ = Derived ( ) . foo ( ) as C1
126126 expectEqual ( " Derived.foo() -> C1 " , which)
127127
128- Derived ( ) . foo ( ) as C1 ?
128+ _ = Derived ( ) . foo ( ) as C1 ?
129129 expectEqual ( " Derived.foo() -> C1 " , which)
130130}
131131
@@ -139,10 +139,10 @@ Overrides.test("contravariant return type override, base class to derived class"
139139 }
140140 }
141141
142- Derived ( ) . foo ( ) as C1
142+ _ = Derived ( ) . foo ( ) as C1
143143 expectEqual ( " Derived.foo() -> C1x " , which)
144144
145- Derived ( ) . foo ( ) as C1x
145+ _ = Derived ( ) . foo ( ) as C1x
146146 expectEqual ( " Derived.foo() -> C1x " , which)
147147}
148148
@@ -156,10 +156,10 @@ Overrides.test("contravariant return type override, optional base class to non-o
156156 }
157157 }
158158
159- Derived ( ) . foo ( ) as C1
159+ _ = Derived ( ) . foo ( ) as C1
160160 expectEqual ( " Derived.foo() -> C1x " , which)
161161
162- Derived ( ) . foo ( ) as C1x
162+ _ = Derived ( ) . foo ( ) as C1x
163163 expectEqual ( " Derived.foo() -> C1x " , which)
164164}
165165
@@ -180,7 +180,7 @@ Overrides.test("contravariant return type override, protocol to protocol") {
180180 // Derived().foo() as P1 // error: ambiguous use of 'foo()'
181181 // expectEqual("Derived.foo() -> P1x", which)
182182
183- Derived ( ) . foo ( ) as P1x
183+ _ = Derived ( ) . foo ( ) as P1x
184184 expectEqual ( " Derived.foo() -> P1x " , which)
185185}
186186
@@ -201,7 +201,7 @@ Overrides.test("contravariant return type override, protocol to struct") {
201201 // Derived().foo() as P1 // error: ambiguous use of 'foo()'
202202 // expectEqual("Derived.foo() -> P1ImplS1", which)
203203
204- Derived ( ) . foo ( ) as P1ImplS1
204+ _ = Derived ( ) . foo ( ) as P1ImplS1
205205 expectEqual ( " Derived.foo() -> P1ImplS1 " , which)
206206}
207207
0 commit comments