summaryrefslogtreecommitdiff
path: root/test/files/neg/t9361.scala
blob: b689461e4d562ae3074c6b2fe1845a83282b492c (plain) (blame)
1
2
3
4
5
abstract class Foo[Tc[_]] { def tc: Tc[_] }
object Foo {
  def foo[Tc[_]](): Foo[Tc] { type T = Nothing } =
    new Foo { def tc = null.asInstanceOf[Tc[_]] }
}