diff options
author | Martin Odersky <odersky@gmail.com> | 2011-03-23 18:32:39 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-03-23 18:32:39 +0000 |
commit | 84671e107610b4b0807ec3f7d881a47978cd20e0 (patch) | |
tree | 595dcd328d63dd6fc508cde45bcecb9d88ff577f /test/pending | |
parent | 1323a61e682c99084c5ca5f259d0ae89159c8a14 (diff) | |
download | scala-84671e107610b4b0807ec3f7d881a47978cd20e0.tar.gz scala-84671e107610b4b0807ec3f7d881a47978cd20e0.tar.bz2 scala-84671e107610b4b0807ec3f7d881a47978cd20e0.zip |
Moving signature tests to pending, because they...
Moving signature tests to pending, because they operate under wrong
assumptions now that mixed in members are bridges. Review by extempore.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/bug4291.check | 4 | ||||
-rw-r--r-- | test/pending/run/bug4291.scala | 10 | ||||
-rw-r--r-- | test/pending/run/sigtp.check | 7 | ||||
-rw-r--r-- | test/pending/run/sigtp.scala | 18 |
4 files changed, 39 insertions, 0 deletions
diff --git a/test/pending/run/bug4291.check b/test/pending/run/bug4291.check new file mode 100644 index 0000000000..c2b58db6e6 --- /dev/null +++ b/test/pending/run/bug4291.check @@ -0,0 +1,4 @@ +scala.collection.immutable.List A +scala.Option A +scala.Function1 R +scala.collection.Traversable That diff --git a/test/pending/run/bug4291.scala b/test/pending/run/bug4291.scala new file mode 100644 index 0000000000..6053c7ac6a --- /dev/null +++ b/test/pending/run/bug4291.scala @@ -0,0 +1,10 @@ +import scala.tools.partest._ + +object Test extends SigTest { + def main(args: Array[String]): Unit = { + show[List[_]]("apply") + show[Option[_]]("get") + show[Function1[_, _]]("apply") + show[Traversable[_]]("flatMap") + } +} diff --git a/test/pending/run/sigtp.check b/test/pending/run/sigtp.check new file mode 100644 index 0000000000..6b961be3d0 --- /dev/null +++ b/test/pending/run/sigtp.check @@ -0,0 +1,7 @@ +public A Bug.key() +public Bug<A, B> Bug.foo() +public Bug<A, B> Bug.next() +public void Bug.next_$eq(Bug<A, B>) +public abstract A BugBase.key() +public abstract E BugBase.next() +public abstract void BugBase.next_$eq(E) diff --git a/test/pending/run/sigtp.scala b/test/pending/run/sigtp.scala new file mode 100644 index 0000000000..f0cac859f5 --- /dev/null +++ b/test/pending/run/sigtp.scala @@ -0,0 +1,18 @@ +trait BugBase [A, E] { + val key: A + var next: E = _ +} + +final class Bug[A, B](val key: A) extends BugBase[A, Bug[A, B]] { + def foo = next +} + +object Test { + def f(clazz: Class[_]) = + clazz.getDeclaredMethods.toList.map(_.toGenericString).sorted foreach println + + def main(args: Array[String]): Unit = { + f(classOf[Bug[_, _]]) + f(classOf[BugBase[_, _]]) + } +} |