Skip to content

Commit 774a2da

Browse files
committed
Restore test i23245a
1 parent c0f7c2a commit 774a2da

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

tests/disabled/i23245a/test_2.scala

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/run/i23245a/test_2.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Test extends logadapter.Api.SelfLogging:
2+
def main(args: Array[String]): Unit =
3+
try summon[logadapter.LogAdapter].info("Hello")
4+
catch t => t.printStackTrace(System.out)

tests/run/i23245d/BaseTest_1.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
abstract class BaseTest {
2+
def genName(): String = "outerAccess"
3+
trait Fixture {
4+
lazy val service: Service = new Service {
5+
val a = genName()
6+
def doIt(a: String): Int = 0
7+
}
8+
}
9+
}
10+
11+
trait Service {
12+
def doIt(a: String): Int
13+
}

tests/run/i23245d/Test_2.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Test extends BaseTest {
2+
def main(args: Array[String]): Unit =
3+
new Fixture { service.doIt("test") }
4+
}

0 commit comments

Comments
 (0)