summaryrefslogtreecommitdiff
path: root/test/files/neg/abstract-report2.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-10-14 02:16:17 +0000
committerPaul Phillips <paulp@improving.org>2011-10-14 02:16:17 +0000
commitfcd0998f1e0f2307e9b0cbae6bf2c36234ca8d17 (patch)
tree3eb2fa53283a9f399cd3e11a15a391b9d0307ca3 /test/files/neg/abstract-report2.scala
parentbca8959a1ab162dadec51c0db7d062315f5e4d6e (diff)
downloadscala-fcd0998f1e0f2307e9b0cbae6bf2c36234ca8d17.tar.gz
scala-fcd0998f1e0f2307e9b0cbae6bf2c36234ca8d17.tar.bz2
scala-fcd0998f1e0f2307e9b0cbae6bf2c36234ca8d17.zip
Better error when abstract methods are missing.
When many methods are missing, print a list of signatures the way they need to be implemented, and throw in ??? stub implementations so it should be compilable code. If anyone would like this logic exposed more generally (for the IDE or whatever) just let me know. No review.
Diffstat (limited to 'test/files/neg/abstract-report2.scala')
-rw-r--r--test/files/neg/abstract-report2.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/abstract-report2.scala b/test/files/neg/abstract-report2.scala
new file mode 100644
index 0000000000..b6327b0766
--- /dev/null
+++ b/test/files/neg/abstract-report2.scala
@@ -0,0 +1,11 @@
+import java.util.Collection
+
+class Foo extends Collection[Int]
+
+class Bar extends Collection[List[_ <: String]]
+
+class Baz[T] extends Collection[T]
+
+trait Bippy[T1, T2, T3] extends Collection[T1] with TraversableOnce[(T2, String)] with Ordering[T3]
+
+class Dingus extends Bippy[String, Set[Int], List[Int]] \ No newline at end of file