summaryrefslogblamecommitdiff
path: root/test/files/neg/t2078.check
blob: 00bb323a0bacaa7ff1cd74e97265f58cf4547a81 (plain) (tree)
1
2
3
4
                                                                                                              


                            
t2078.scala:2: error: contravariant type S occurs in covariant position in type => AnyRef{val x: S} of value f
  val f  = new { val x = y }
      ^
one error found