From 4650909ced302413d30d3034c04d5cac1d04fdde Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Thu, 27 Nov 2025 09:49:53 -0800 Subject: [PATCH 1/3] test --- tests/{disabled => run}/i23245a/api.scala | 0 tests/{disabled => run}/i23245a/test_2.scala | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename tests/{disabled => run}/i23245a/api.scala (100%) rename tests/{disabled => run}/i23245a/test_2.scala (100%) 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/disabled/i23245a/test_2.scala b/tests/run/i23245a/test_2.scala similarity index 100% rename from tests/disabled/i23245a/test_2.scala rename to tests/run/i23245a/test_2.scala From a11a70a7a774eff3a84cfe083873d07a7c2d5ac2 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Tue, 2 Dec 2025 10:31:45 -0800 Subject: [PATCH 2/3] probe --- tests/run/i23245a.check | 1 + tests/run/i23245a/test_2.scala | 6 ++---- tests/run/i23245d/BaseTest_1.scala | 13 +++++++++++++ tests/run/i23245d/Test_2.scala | 4 ++++ 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 tests/run/i23245a.check create mode 100644 tests/run/i23245d/BaseTest_1.scala create mode 100644 tests/run/i23245d/Test_2.scala diff --git a/tests/run/i23245a.check b/tests/run/i23245a.check new file mode 100644 index 000000000000..895d2c658675 --- /dev/null +++ b/tests/run/i23245a.check @@ -0,0 +1 @@ +INFO [Test$] Hello diff --git a/tests/run/i23245a/test_2.scala b/tests/run/i23245a/test_2.scala index faf0960c29cb..c04ae43058b0 100644 --- a/tests/run/i23245a/test_2.scala +++ b/tests/run/i23245a/test_2.scala @@ -1,6 +1,4 @@ - - object Test extends logadapter.Api.SelfLogging: def main(args: Array[String]): Unit = - summon[logadapter.LogAdapter].info("Hello") - + 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") } +} From 54bcef66b84a385844d64c3c310dcf06e5291096 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Tue, 2 Dec 2025 10:36:45 -0800 Subject: [PATCH 3/3] Force error --- tests/run/i23245a.check | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run/i23245a.check b/tests/run/i23245a.check index 895d2c658675..47253079acd0 100644 --- a/tests/run/i23245a.check +++ b/tests/run/i23245a.check @@ -1 +1,2 @@ INFO [Test$] Hello +rinse, repeat