We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f793e09 commit 6c858d5Copy full SHA for 6c858d5
tests/run-macros/i6988/FirstArg_1.scala
@@ -2,7 +2,7 @@ package foo
2
3
case class FirstArg(value: Any, source: String)
4
object FirstArg {
5
- inline given FirstArg = ${Macros.argsImpl}
+ inline given create: FirstArg = ${Macros.argsImpl}
6
}
7
8
object Macros {
tests/run-macros/i6988/Test_2.scala
@@ -6,11 +6,11 @@ object Test {
assert("p1" == firstArgName)
assert("something" == firstArgValue)
9
- def debug given foo.FirstArg: Unit = {
10
- firstArgName = the[foo.FirstArg].source
11
- firstArgValue = the[foo.FirstArg].value
+ def debug(given foo.FirstArg): Unit = {
+ firstArgName = summon[foo.FirstArg].source
+ firstArgValue = summon[foo.FirstArg].value
12
13
class Foo(p1: String, p2: Long, p3: Boolean) {
14
debug
15
16
-}
+}
0 commit comments