@@ -103,10 +103,8 @@ Overrides.test("covariant argument override, struct to protocol") {
103
103
}
104
104
105
105
// FIXME: https://bugs.swift.org/browse/SR-731
106
- expectFailure {
107
- Derived ( ) . foo ( P1ImplS1 ( ) )
108
- expectEqual ( " Derived.foo(P1) " , which)
109
- }
106
+ Derived ( ) . foo ( P1ImplS1 ( ) )
107
+ expectEqual ( " Base.foo(P1ImplS1) " , which)
110
108
111
109
Derived ( ) . foo ( P1xImplS1 ( ) )
112
110
expectEqual ( " Derived.foo(P1) " , which)
@@ -321,14 +319,13 @@ Overloads.test("generic methods are worse than non-generic") {
321
319
func foo( _: C1 ) { which = " foo(C1) " }
322
320
func foo( _: Any ) { which = " foo(Any) " }
323
321
func foo< T> ( _: T ) { which = " foo(T) " }
324
- // It is not possible to call foo<T>(T). foo(Any) always wins.
325
322
326
323
func bar( _: C1 ) { which = " bar(C1) " }
327
324
func bar< T> ( _: T ) { which = " bar(T) " }
328
325
}
329
326
330
327
Base ( ) . foo ( C1 ( ) ) ; expectEqual ( " foo(C1) " , which)
331
- Base ( ) . foo ( Token1 ( ) ) ; expectEqual ( " foo(Any ) " , which)
328
+ Base ( ) . foo ( Token1 ( ) ) ; expectEqual ( " foo(T ) " , which)
332
329
333
330
Base ( ) . bar ( C1 ( ) ) ; expectEqual ( " bar(C1) " , which)
334
331
Base ( ) . bar ( Token1 ( ) ) ; expectEqual ( " bar(T) " , which)
0 commit comments