summaryrefslogtreecommitdiff
path: root/test/files/neg/tcpoly_variance_enforce.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/tcpoly_variance_enforce.check')
-rw-r--r--test/files/neg/tcpoly_variance_enforce.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/tcpoly_variance_enforce.check b/test/files/neg/tcpoly_variance_enforce.check
index 508ed90fbb..48025889fc 100644
--- a/test/files/neg/tcpoly_variance_enforce.check
+++ b/test/files/neg/tcpoly_variance_enforce.check
@@ -36,10 +36,10 @@ object fcoll4_2 extends coll4[FooString, Any] // error
^
tcpoly_variance_enforce.scala:37: error: kinds of the type arguments (FooInvar) do not conform to the expected kinds of the type parameters (type m) in trait coll.
FooInvar's type parameters do not match type m's expected parameters: type x (in class FooInvar) is invariant, but type x is declared covariant
- def x: coll[FooInvar] = error("foo") // error
+ def x: coll[FooInvar] = system.error("foo") // error
^
tcpoly_variance_enforce.scala:38: error: kinds of the type arguments (FooContra) do not conform to the expected kinds of the type parameters (type m) in trait coll.
FooContra's type parameters do not match type m's expected parameters: type x (in class FooContra) is contravariant, but type x is declared covariant
- def y: coll[FooContra] = error("foo") // error
+ def y: coll[FooContra] = system.error("foo") // error
^
11 errors found