summaryrefslogblamecommitdiff
path: root/test/files/neg/t5060.check
blob: ab860c9d5b95f4c065ae5e7c5070deb8295c7686 (plain) (tree)
1
2
3
4
5
6
7






                                                                                                                                                   
t5060.scala:2: error: covariant type T occurs in contravariant position in type => Object with ScalaObject{def contains(x: T): Unit} of value foo0
  val foo0 = {
      ^
t5060.scala:6: error: covariant type T occurs in contravariant position in type => Object with ScalaObject{def contains(x: T): Unit} of method foo1
  def foo1 = {
      ^
two errors found