From 32ca2f2be6a027e2112bc1f8e10f99571caa4a8c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 4 Dec 2010 19:33:47 +0000 Subject: Introducing scala.system, the product of a whir... Introducing scala.system, the product of a whirlwind couple of hours. More useful stuff than you can shake three sticks at. See the scala.system package object. It's even documented. And since it has methods error and exit, proceeded to deprecate the ones in Predef. No review. --- test/files/neg/tcpoly_variance_enforce.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/files/neg/tcpoly_variance_enforce.scala') diff --git a/test/files/neg/tcpoly_variance_enforce.scala b/test/files/neg/tcpoly_variance_enforce.scala index f3962d6757..cbc8ad7c66 100644 --- a/test/files/neg/tcpoly_variance_enforce.scala +++ b/test/files/neg/tcpoly_variance_enforce.scala @@ -34,8 +34,8 @@ object fcoll4_2 extends coll4[FooString, Any] // error object test { var ok: coll[FooCov] = _ - def x: coll[FooInvar] = error("foo") // error - def y: coll[FooContra] = error("foo") // error + def x: coll[FooInvar] = system.error("foo") // error + def y: coll[FooContra] = system.error("foo") // error } -- cgit v1.2.3