Github user michalsenkyr commented on the issue:
https://github.com/apache/spark/pull/16240
None of them. The compilation will fail. That is why I had to provide those
additional implicits.
```
scala> class Test[T]
defined class Test
scala> implicit def test1[T <: Seq[String]]: Test[T] = null
test1: [T <: Seq[String]]=> Test[T]
scala> implicit def test2[T <: Product]: Test[T] = null
test2: [T <: Product]=> Test[T]
scala> def test[T : Test](t: T) = null
test: [T](t: T)(implicit evidence$1: Test[T])Null
scala> test(List("abc"))
<console>:31: error: ambiguous implicit values:
both method test1 of type [T <: Seq[String]]=> Test[T]
and method test2 of type [T <: Product]=> Test[T]
match expected type Test[List[String]]
test(List("abc"))
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]