summaryrefslogtreecommitdiff
path: root/test/files/run/sigtp.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-03 05:59:01 +0000
committerPaul Phillips <paulp@improving.org>2011-03-03 05:59:01 +0000
commitebeb8c51e434f0a1e1b0de4fa9740a158f57b1ab (patch)
treed67ef34148df775e4acff9936a29849bc2b7ee9c /test/files/run/sigtp.scala
parent4e0d7b8e223511e05fd67c6c90a4af369e99787f (diff)
downloadscala-ebeb8c51e434f0a1e1b0de4fa9740a158f57b1ab.tar.gz
scala-ebeb8c51e434f0a1e1b0de4fa9740a158f57b1ab.tar.bz2
scala-ebeb8c51e434f0a1e1b0de4fa9740a158f57b1ab.zip
Seem to have made a breakthrough with signature...
Seem to have made a breakthrough with signature correctness. Most of the remaining troubles were due to inherited members and their foreign identifiers, but I think I found a simple way to make everyone happy. Closes #4238, review by moors.
Diffstat (limited to 'test/files/run/sigtp.scala')
-rw-r--r--test/files/run/sigtp.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/sigtp.scala b/test/files/run/sigtp.scala
new file mode 100644
index 0000000000..f0cac859f5
--- /dev/null
+++ b/test/files/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[_, _]])
+ }
+}