diff options
Diffstat (limited to 'test/files/run/t7008')
-rw-r--r-- | test/files/run/t7008/Impls_Macros_2.scala | 2 | ||||
-rw-r--r-- | test/files/run/t7008/Test_3.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t7008/Impls_Macros_2.scala b/test/files/run/t7008/Impls_Macros_2.scala index 9dfa66a20a..3c6fe116ce 100644 --- a/test/files/run/t7008/Impls_Macros_2.scala +++ b/test/files/run/t7008/Impls_Macros_2.scala @@ -4,7 +4,7 @@ import scala.reflect.macros.blackbox.Context object Macros { def impl(c: Context) = { import c.universe._ - val decls = c.typeOf[JavaClassWithCheckedExceptions_1[_]].declarations.toList + val decls = c.typeOf[JavaClassWithCheckedExceptions_1[_]].decls.toList val s = decls.sortBy(_.name.toString).map(decl => (s"${decl.name}: ${decl.annotations}")).mkString(scala.compat.Platform.EOL) reify(println(c.Expr[String](Literal(Constant(s))).splice)) } diff --git a/test/files/run/t7008/Test_3.scala b/test/files/run/t7008/Test_3.scala index b2961a829e..99db05e810 100644 --- a/test/files/run/t7008/Test_3.scala +++ b/test/files/run/t7008/Test_3.scala @@ -4,6 +4,6 @@ object Test extends App { Macros.foo println("=============") - val decls = typeOf[JavaClassWithCheckedExceptions_1[_]].declarations.toList + val decls = typeOf[JavaClassWithCheckedExceptions_1[_]].decls.toList decls sortBy (_.name.toString) foreach (decl => println(s"${decl.name}: ${decl.annotations}")) }
\ No newline at end of file |