aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-02-14 16:38:48 +0100
committerMartin Odersky <odersky@gmail.com>2017-02-14 16:52:13 +0100
commit17469b82ca7afc5376bc3906bb5b64d10f38a100 (patch)
treea2f82eb455c47af697a5786b1eb6a70f7a2ad14a /tests/neg
parent47901c09885f8931d82a3bbc469985a50f790091 (diff)
downloaddotty-17469b82ca7afc5376bc3906bb5b64d10f38a100.tar.gz
dotty-17469b82ca7afc5376bc3906bb5b64d10f38a100.tar.bz2
dotty-17469b82ca7afc5376bc3906bb5b64d10f38a100.zip
Tweak printing of polymrophic methods
Omit the `=>' if a PolyType has a MethodType as result type.
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i1747.scala3
1 files changed, 3 insertions, 0 deletions
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
+}