summaryrefslogtreecommitdiff
path: root/test/files/neg/t2078.check
blob: 1b79c196217cb0f27b82746c7dad1bfb836a1319 (plain) (blame)
1
2
3
4
t2078.scala:2: error: contravariant type S occurs in covariant position in type => java.lang.Object{val x: S} of value f
  val f  = new { val x = y }
      ^
one error found