diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-13 14:47:40 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-13 14:47:40 -0700 |
commit | bb01d35e0a2473524a3de3660e4098af673603f3 (patch) | |
tree | 5f7de9cf43320ad0a7e16bbc9b0033987ea41fa1 /test | |
parent | d1bdafa6bad6bb8b240d0ede8d711c1f00ab3829 (diff) | |
parent | 97ae6f6f72dba8d6d911ad3c8dae4da679aeb586 (diff) | |
download | scala-bb01d35e0a2473524a3de3660e4098af673603f3.tar.gz scala-bb01d35e0a2473524a3de3660e4098af673603f3.tar.bz2 scala-bb01d35e0a2473524a3de3660e4098af673603f3.zip |
Merge pull request #1130 from non/si6223-2.10.x
Move side-effecting call out of debuglog(). Fixes SI-6223.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t6223.check | 4 | ||||
-rw-r--r-- | test/files/run/t6223.scala | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t6223.check b/test/files/run/t6223.check new file mode 100644 index 0000000000..90ec019407 --- /dev/null +++ b/test/files/run/t6223.check @@ -0,0 +1,4 @@ +bar +bar$mcI$sp +bar$mIc$sp +bar$mIcI$sp diff --git a/test/files/run/t6223.scala b/test/files/run/t6223.scala new file mode 100644 index 0000000000..4ab7c832e6 --- /dev/null +++ b/test/files/run/t6223.scala @@ -0,0 +1,11 @@ +class Foo[@specialized(Int) A](a:A) { + def bar[@specialized(Int) B](f:A => B) = new Foo(f(a)) +} + +object Test { + def main(args:Array[String]) { + val f = new Foo(333) + val ms = f.getClass().getDeclaredMethods() + ms.foreach(m => println(m.getName)) + } +} |