From ead69ed24557ff42966a2bd5f71b6434ac5343b6 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 6 Aug 2011 14:24:59 +0000 Subject: Disallowed implicit modifier on auxiliary const... Disallowed implicit modifier on auxiliary constructors, since it either silently accomplishes nothing or crashes the compiler. If it should do something useful let me know. Closes SI-4882, review by odersky. --- test/files/neg/bug4882.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/files/neg/bug4882.scala (limited to 'test/files/neg/bug4882.scala') diff --git a/test/files/neg/bug4882.scala b/test/files/neg/bug4882.scala new file mode 100644 index 0000000000..4e58ef7879 --- /dev/null +++ b/test/files/neg/bug4882.scala @@ -0,0 +1,3 @@ +class Foo(value: Int) { + implicit def this(a: String) = this(a.toInt) +} -- cgit v1.2.3