diff options
Diffstat (limited to 'test/files/neg/variances.check')
-rw-r--r-- | test/files/neg/variances.check | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/files/neg/variances.check b/test/files/neg/variances.check index 7f46b656bc..ba894a439d 100644 --- a/test/files/neg/variances.check +++ b/test/files/neg/variances.check @@ -1,4 +1,10 @@ -variances.scala:2: error: covariant type A occurs in contravariant position in type Vector[A] of value x +variances.scala:4: error: covariant type A occurs in contravariant position in type test.Vector[A] of value x def append(x: Vector[A]): Vector[A] ^ -one error found +variances.scala:14: error: covariant type A occurs in contravariant position in type A of value a + private[this] def setA(a : A) = this.a = a + ^ +variances.scala:16: error: covariant type A occurs in invariant position in type test.C[A] with ScalaObject{def this(): object Foo.this.Baz} of object Baz + object Baz extends C[A] + ^ +three errors found |