summaryrefslogblamecommitdiff
path: root/test/files/run/t7319.scala
blob: 23ffeb977db3c82d07d03449876d8c7514207506 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                                 
import scala.tools.partest.ReplTest

object Test extends ReplTest {
  // so we can provide the ambiguities, rather than relying in Predef implicits
  override def extraSettings = "-Yno-predef"
  override def code = """
class M[A]
implicit def ma0[A](a: A): M[A] = null
implicit def ma1[A](a: A): M[A] = null
def convert[F[X <: F[X]]](builder: F[_ <: F[_]]) = 0
convert(Some[Int](0))
0""" // before the fix, this line, and all that followed, re-issued the implicit ambiguity error.
}