diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-02 22:43:10 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-02 22:43:10 +0000 |
commit | 06aa1c9eff49d5190e82a72a876d7b3bd706d6d4 (patch) | |
tree | 4c38f2559c839ba297060a48023d69550c5d107e /test/pending/pos/bug586.scala | |
parent | 256aca612204f1316e5281af6d10a14300d58ad1 (diff) | |
download | scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.gz scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.tar.bz2 scala-06aa1c9eff49d5190e82a72a876d7b3bd706d6d4.zip |
Sorting through the tests in pending from oldes...
Sorting through the tests in pending from oldest to newest because I
don't believe in having useless appendages. The verdict on the oldest
fifteen tests is: 15/15 are fixed. Many were already in files under a
different name. I moved a few and deleted the rest. Fun fact of the
day: apparently there was a time when to call into java varargs with no
arguments you might have to write something like:
getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]())
On this basis I retract any complaints I've ever had about anything.
There is one question mark outlined in pos/testCoercionThis.scala, a
file formerly called pos/moors.scala and therefore... review by moors.
Diffstat (limited to 'test/pending/pos/bug586.scala')
-rw-r--r-- | test/pending/pos/bug586.scala | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/test/pending/pos/bug586.scala b/test/pending/pos/bug586.scala deleted file mode 100644 index b736e6ab43..0000000000 --- a/test/pending/pos/bug586.scala +++ /dev/null @@ -1,78 +0,0 @@ -import scala.collection.immutable.{Map, TreeMap, ListMap, ListSet, Set} -import scala.collection.{immutable=>imm, mutable=>mut} - -case class HashTreeSet[A](map: imm.Map[A, Unit]) -extends Object -with imm.Set[A] -{ - def this() = this(null) - - def size = map.size - def +(elem: A) = new HashTreeSet(map + elem -> ()) - def -(elem: A) = new HashTreeSet(map - elem) - def contains(elem: A) = map.isDefinedAt(elem) - def iterator = map.iterator.map(._1) - def empty:imm.Set[A] = new HashTreeSet[A]() -} - - -abstract class Goal2 { - type Question - val question: Question - - type Answer - def initialAnswer: Answer -} - - - -abstract class AbstractRespondersGoal -extends Goal2 // TYPEFIX -- comment out the extends Goal2 -{ -} - -class RespondersGoal( - val question: String, - rcvr: String, - signature: String, - codebase: String) -extends AbstractRespondersGoal -{ - type Question = String - type Answer = imm.Set[String] - - val initialAnswer = new HashTreeSet[String]()// TYPEFIX .asInstanceOf[Answer] -} - - -class SingleResponderGoal(val question: String, responder: String) -extends AbstractRespondersGoal -{ - type Question = String - type Answer = Set[String] - val initialAnswer = (new ListSet[String])//TYPEFIX .asInstanceOf[Answer] -} - -class RespondersGoalSet -//extends OneKindGoalSet -{ - type Question = String - type Answer = imm.Set[String] - type MyGoal = AbstractRespondersGoal - - var selector: Boolean = _ - def newGoal(question: String) //TYPEFIX :MyGoal - = { - - selector match { -// case StaticMethodSelector(method: MethodRef) => - case true => - new SingleResponderGoal(null, null) - -// case DynamicMethodSelector(signature: MethodSignature) => { -case false => { - new RespondersGoal(null, null,null,null) - } - } - } -} |