From 4505c2b05c622e5438dddb9a3a9b3296819baaa0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 28 Oct 2011 02:43:59 +0000 Subject: Better report on missing methods. Discovered an overloaded method with multiple unimplemented variants only had one listed. Fixed, no review. --- test/files/neg/abstract-report2.check | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/files/neg/abstract-report2.check') diff --git a/test/files/neg/abstract-report2.check b/test/files/neg/abstract-report2.check index 32d52e00f2..35a99bdd25 100644 --- a/test/files/neg/abstract-report2.check +++ b/test/files/neg/abstract-report2.check @@ -1,5 +1,5 @@ abstract-report2.scala:3: error: class Foo needs to be abstract, since: -it has 12 unimplemented members. +it has 13 unimplemented members. /** As seen from class Foo, the missing signatures are as follows. * For convenience, these are usable as stub implementations. */ @@ -15,11 +15,12 @@ it has 12 unimplemented members. def retainAll(x$1: java.util.Collection[_]): Boolean = ??? def size(): Int = ??? def toArray[T](x$1: Array[T with Object]): Array[T with Object] = ??? + def toArray(): Array[Object] = ??? class Foo extends Collection[Int] ^ abstract-report2.scala:5: error: class Bar needs to be abstract, since: -it has 12 unimplemented members. +it has 13 unimplemented members. /** As seen from class Bar, the missing signatures are as follows. * For convenience, these are usable as stub implementations. */ @@ -35,11 +36,12 @@ it has 12 unimplemented members. def retainAll(x$1: java.util.Collection[_]): Boolean = ??? def size(): Int = ??? def toArray[T](x$1: Array[T with Object]): Array[T with Object] = ??? + def toArray(): Array[Object] = ??? class Bar extends Collection[List[_ <: String]] ^ abstract-report2.scala:7: error: class Baz needs to be abstract, since: -it has 12 unimplemented members. +it has 13 unimplemented members. /** As seen from class Baz, the missing signatures are as follows. * For convenience, these are usable as stub implementations. */ @@ -55,11 +57,12 @@ it has 12 unimplemented members. def retainAll(x$1: java.util.Collection[_]): Boolean = ??? def size(): Int = ??? def toArray[T](x$1: Array[T with Object]): Array[T with Object] = ??? + def toArray(): Array[Object] = ??? class Baz[T] extends Collection[T] ^ abstract-report2.scala:11: error: class Dingus needs to be abstract, since: -it has 23 unimplemented members. +it has 24 unimplemented members. /** As seen from class Dingus, the missing signatures are as follows. * For convenience, these are usable as stub implementations. */ @@ -74,6 +77,7 @@ it has 23 unimplemented members. def removeAll(x$1: java.util.Collection[_]): Boolean = ??? def retainAll(x$1: java.util.Collection[_]): Boolean = ??? def toArray[T](x$1: Array[T with Object]): Array[T with Object] = ??? + def toArray(): Array[Object] = ??? // Members declared in scala.collection.GenTraversableOnce def isTraversableAgain: Boolean = ??? -- cgit v1.2.3