diff options
Diffstat (limited to 'test/files/run/t8192')
-rw-r--r-- | test/files/run/t8192/Macros_1.scala | 4 | ||||
-rw-r--r-- | test/files/run/t8192/Test_2.scala | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/t8192/Macros_1.scala b/test/files/run/t8192/Macros_1.scala index 2089273d6d..ddad9fb872 100644 --- a/test/files/run/t8192/Macros_1.scala +++ b/test/files/run/t8192/Macros_1.scala @@ -22,10 +22,10 @@ object Macros { if (sym == NoSymbol) "NoSymbol" else s"${defString(sym)} => ${sym.asMethod.isPrimaryConstructor}" } - sym.typeSignature + sym.info println(sym.toString) println(s"primary constructor: ${showCtor(sym.primaryConstructor)}") - val ctors = sym.typeSignature.members.filter(_.name == nme.CONSTRUCTOR).map(sym => showCtor(sym)) + val ctors = sym.info.members.filter(_.name == termNames.CONSTRUCTOR).map(sym => showCtor(sym)) ctors.toList.sorted.foreach(println) } diff --git a/test/files/run/t8192/Test_2.scala b/test/files/run/t8192/Test_2.scala index 15f684eb3f..29f187c171 100644 --- a/test/files/run/t8192/Test_2.scala +++ b/test/files/run/t8192/Test_2.scala @@ -21,10 +21,10 @@ object Test extends App { if (sym == NoSymbol) "NoSymbol" else s"${defString(sym)} => ${sym.asMethod.isPrimaryConstructor}" } - sym.typeSignature + sym.info println(sym.toString) println(s"primary constructor: ${showCtor(sym.primaryConstructor)}") - val ctors = sym.typeSignature.members.filter(_.name == nme.CONSTRUCTOR).map(sym => showCtor(sym)) + val ctors = sym.info.members.filter(_.name == termNames.CONSTRUCTOR).map(sym => showCtor(sym)) ctors.toList.sorted.foreach(println) } |