File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package foo
22
33case class FirstArg (value : Any , source : String )
44object FirstArg {
5- inline given FirstArg = $ {Macros .argsImpl}
5+ inline given create : FirstArg = $ {Macros .argsImpl}
66}
77
88object Macros {
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ object Test {
66 assert(" p1" == firstArgName)
77 assert(" something" == firstArgValue)
88 }
9- def debug given foo .FirstArg : Unit = {
10- firstArgName = the [foo.FirstArg ].source
11- firstArgValue = the [foo.FirstArg ].value
9+ def debug ( given foo .FirstArg ) : Unit = {
10+ firstArgName = summon [foo.FirstArg ].source
11+ firstArgValue = summon [foo.FirstArg ].value
1212 }
1313 class Foo (p1 : String , p2 : Long , p3 : Boolean ) {
1414 debug
1515 }
16- }
16+ }
You can’t perform that action at this time.
0 commit comments