@@ -103,10 +103,8 @@ Overrides.test("covariant argument override, struct to protocol") {
103103 }
104104
105105 // 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)
110108
111109 Derived ( ) . foo ( P1xImplS1 ( ) )
112110 expectEqual ( " Derived.foo(P1) " , which)
@@ -321,14 +319,13 @@ Overloads.test("generic methods are worse than non-generic") {
321319 func foo( _: C1 ) { which = " foo(C1) " }
322320 func foo( _: Any ) { which = " foo(Any) " }
323321 func foo< T> ( _: T ) { which = " foo(T) " }
324- // It is not possible to call foo<T>(T). foo(Any) always wins.
325322
326323 func bar( _: C1 ) { which = " bar(C1) " }
327324 func bar< T> ( _: T ) { which = " bar(T) " }
328325 }
329326
330327 Base ( ) . foo ( C1 ( ) ) ; expectEqual ( " foo(C1) " , which)
331- Base ( ) . foo ( Token1 ( ) ) ; expectEqual ( " foo(Any ) " , which)
328+ Base ( ) . foo ( Token1 ( ) ) ; expectEqual ( " foo(T ) " , which)
332329
333330 Base ( ) . bar ( C1 ( ) ) ; expectEqual ( " bar(C1) " , which)
334331 Base ( ) . bar ( Token1 ( ) ) ; expectEqual ( " bar(T) " , which)
0 commit comments