diff --git a/tests/disabled/i23245a/test_2.scala b/tests/disabled/i23245a/test_2.scala deleted file mode 100644 index faf0960c29cb..000000000000 --- a/tests/disabled/i23245a/test_2.scala +++ /dev/null @@ -1,6 +0,0 @@ - - -object Test extends logadapter.Api.SelfLogging: - def main(args: Array[String]): Unit = - summon[logadapter.LogAdapter].info("Hello") - diff --git a/tests/run/i23245a.check b/tests/run/i23245a.check new file mode 100644 index 000000000000..47253079acd0 --- /dev/null +++ b/tests/run/i23245a.check @@ -0,0 +1,2 @@ +INFO [Test$] Hello +rinse, repeat diff --git a/tests/disabled/i23245a/api.scala b/tests/run/i23245a/api.scala similarity index 100% rename from tests/disabled/i23245a/api.scala rename to tests/run/i23245a/api.scala diff --git a/tests/run/i23245a/test_2.scala b/tests/run/i23245a/test_2.scala new file mode 100644 index 000000000000..c04ae43058b0 --- /dev/null +++ b/tests/run/i23245a/test_2.scala @@ -0,0 +1,4 @@ +object Test extends logadapter.Api.SelfLogging: + def main(args: Array[String]): Unit = + try summon[logadapter.LogAdapter].info("Hello") + catch t => t.printStackTrace(System.out) diff --git a/tests/run/i23245d/BaseTest_1.scala b/tests/run/i23245d/BaseTest_1.scala new file mode 100644 index 000000000000..4a23904cb4eb --- /dev/null +++ b/tests/run/i23245d/BaseTest_1.scala @@ -0,0 +1,13 @@ +abstract class BaseTest { + def genName(): String = "outerAccess" + trait Fixture { + lazy val service: Service = new Service { + val a = genName() + def doIt(a: String): Int = 0 + } + } +} + +trait Service { + def doIt(a: String): Int +} diff --git a/tests/run/i23245d/Test_2.scala b/tests/run/i23245d/Test_2.scala new file mode 100644 index 000000000000..9169e6668433 --- /dev/null +++ b/tests/run/i23245d/Test_2.scala @@ -0,0 +1,4 @@ +object Test extends BaseTest { + def main(args: Array[String]): Unit = + new Fixture { service.doIt("test") } +}