aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-21 17:08:43 +0100
committerGitHub <noreply@github.com>2017-02-21 17:08:43 +0100
commit6189ffe415c8905cc5802f0505d837b4142999db (patch)
tree40ba46ae1c6e1956939e7614a60bd72031291f63 /tests/neg
parent61858c048bacb22aeab1893f8812896cb2b4d6a7 (diff)
parent779eaf6b9898e4ec8e2e3cdfbf0d36aeede3926e (diff)
downloaddotty-6189ffe415c8905cc5802f0505d837b4142999db.tar.gz
dotty-6189ffe415c8905cc5802f0505d837b4142999db.tar.bz2
dotty-6189ffe415c8905cc5802f0505d837b4142999db.zip
Merge pull request #1984 from dotty-staging/fix-#1747-v2
Fix #1747: Improve error message for Scala/Java type mismatch
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..54492aaed
--- /dev/null
+++ b/tests/neg/i1747.scala
@@ -0,0 +1,3 @@
+class Coll[E] extends java.util.Collection[E] { // error: needs to be abstract
+ def toArray[T](a: Array[T]): Array[T] = ??? // error: cannot override
+}