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
2
2
3
3
case class FirstArg (value : Any , source : String )
4
4
object FirstArg {
5
- inline given FirstArg = $ {Macros .argsImpl}
5
+ inline given create : FirstArg = $ {Macros .argsImpl}
6
6
}
7
7
8
8
object Macros {
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ object Test {
6
6
assert(" p1" == firstArgName)
7
7
assert(" something" == firstArgValue)
8
8
}
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
12
12
}
13
13
class Foo (p1 : String , p2 : Long , p3 : Boolean ) {
14
14
debug
15
15
}
16
- }
16
+ }
You can’t perform that action at this time.
0 commit comments