diff options
Diffstat (limited to 'test/files/run/t3897/a_2.scala')
-rw-r--r-- | test/files/run/t3897/a_2.scala | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/files/run/t3897/a_2.scala b/test/files/run/t3897/a_2.scala index da5f8df63e..7a161fcbe4 100644 --- a/test/files/run/t3897/a_2.scala +++ b/test/files/run/t3897/a_2.scala @@ -1,6 +1,16 @@ object Test { - def f1(clazz: Class[_]) = clazz.getDeclaredFields.toList map (f => (f.getName, f.getGenericType)) foreach println - def f2(clazz: Class[_]) = clazz.getDeclaredMethods.toList map (f => (f.getName, f.getGenericReturnType)) foreach println + def f1(clazz: Class[_]) = ( + clazz.getDeclaredFields.toList + . filterNot (_.getName contains "bitmap$") + . map (f => (f.getName, f.getGenericType)) + . foreach (println) + ) + def f2(clazz: Class[_]) = ( + clazz.getDeclaredMethods.toList + . filterNot (_.getName contains "bitmap$") + . map (f => (f.getName, f.getGenericReturnType)) + . foreach (println) + ) def main(args: Array[String]): Unit = { f1(classOf[One]) |