From c22ebf74e0ec17d18bf097c1d47426bd647010a5 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 22 Jun 2009 20:26:34 +0000 Subject: Attempted to resolve the improbable mess surrou... Attempted to resolve the improbable mess surrounding implicit conversions from Unit. Modified test case which relied on the supposedly verboten behavior; verbotenized () => AnyRef; added new test case which fails if verboten behavior should ever return. --- test/files/neg/unit2anyref.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/files/neg/unit2anyref.scala (limited to 'test/files/neg/unit2anyref.scala') diff --git a/test/files/neg/unit2anyref.scala b/test/files/neg/unit2anyref.scala new file mode 100644 index 0000000000..3f5c2d19a9 --- /dev/null +++ b/test/files/neg/unit2anyref.scala @@ -0,0 +1,3 @@ +object Test { + val x: AnyRef = () // this should not succeed. +} \ No newline at end of file -- cgit v1.2.3