From 3a824805c46be0ff845fcccc95bfb9eaf4434705 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 19 Jun 2008 18:01:38 +0000 Subject: fix^2 of t0590 --- test/files/neg/t0590.check | 5 +++++ test/files/neg/t0590.scala | 3 +++ test/pending/pos/t0590.scala | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 test/files/neg/t0590.check create mode 100644 test/files/neg/t0590.scala delete mode 100644 test/pending/pos/t0590.scala (limited to 'test') diff --git a/test/files/neg/t0590.check b/test/files/neg/t0590.check new file mode 100644 index 0000000000..b928c1cb76 --- /dev/null +++ b/test/files/neg/t0590.check @@ -0,0 +1,5 @@ +t0590.scala:2: error: diverging implicit expansion for type (Null(null)) => T +starting with method foo in object Test + implicit def foo[T] : T = null + ^ +one error found diff --git a/test/files/neg/t0590.scala b/test/files/neg/t0590.scala new file mode 100644 index 0000000000..3416ade355 --- /dev/null +++ b/test/files/neg/t0590.scala @@ -0,0 +1,3 @@ +object Test { + implicit def foo[T] : T = null +} diff --git a/test/pending/pos/t0590.scala b/test/pending/pos/t0590.scala deleted file mode 100644 index ee75a7d339..0000000000 --- a/test/pending/pos/t0590.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Test { - implicit def foo[T] : T = null -} \ No newline at end of file -- cgit v1.2.3