From 17469b82ca7afc5376bc3906bb5b64d10f38a100 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 14 Feb 2017 16:38:48 +0100 Subject: Tweak printing of polymrophic methods Omit the `=>' if a PolyType has a MethodType as result type. --- tests/neg/i1747.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/neg/i1747.scala (limited to 'tests/neg') diff --git a/tests/neg/i1747.scala b/tests/neg/i1747.scala new file mode 100644 index 000000000..9675de992 --- /dev/null +++ b/tests/neg/i1747.scala @@ -0,0 +1,3 @@ +class Coll[E] extends java.util.Collection[E] { + def toArray[T](a: Array[T]): Array[T] = ??? // error: cannot override +} -- cgit v1.2.3