summaryrefslogblamecommitdiff
path: root/test/files/neg/t6912.scala
blob: f2540ee8c68d3f4eeeaa9f3db8acd578d5cadf1f (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                       
object Foo1 {
  def apply[T](a: Int = 0): Nothing = sys.error("")
  def apply[T](z: String = ""): Nothing = sys.error("")
}

object Test {
  // Triggered a cycle in Typers#adapt
  def test[T]: Xxxx = Foo1[T]
}