diff options
Diffstat (limited to 'test/files/neg/variances.check')
-rw-r--r-- | test/files/neg/variances.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/variances.check b/test/files/neg/variances.check index ba894a439d..4934053706 100644 --- a/test/files/neg/variances.check +++ b/test/files/neg/variances.check @@ -1,3 +1,12 @@ +variances.scala:53: warning: type Character in object Predef is deprecated + val a : Foo[Character] = new Foo[Character] + ^ +variances.scala:53: warning: type Character in object Predef is deprecated + val a : Foo[Character] = new Foo[Character] + ^ +variances.scala:58: warning: type Character in object Predef is deprecated + val x : Character = test.a.getA + ^ 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] ^ @@ -7,4 +16,5 @@ variances.scala:14: error: covariant type A occurs in contravariant position in 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 warnings found three errors found |