File tree Expand file tree Collapse file tree 5 files changed +21
-6
lines changed
Expand file tree Collapse file tree 5 files changed +21
-6
lines changed Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ object Test extends BaseTest {
2+ def main (args : Array [String ]): Unit =
3+ new Fixture { service.doIt(" test" ) }
4+ }
You can’t perform that action at this time.
0 commit comments