aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2794.scala
blob: a17edf8cb34ef3c8bc6ad01f775589161b9f75a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
class Key[T]

class Entry[T](val k: Key[T], val v: T)

object Entry {

    def makeDefault[T >: Null <: AnyRef] = new Entry[T](new Key[T], null: T)

}