Skip to content

Commit 6c858d5

Browse files
committed
WIP
1 parent f793e09 commit 6c858d5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/run-macros/i6988/FirstArg_1.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package foo
22

33
case class FirstArg(value: Any, source: String)
44
object FirstArg {
5-
inline given FirstArg = ${Macros.argsImpl}
5+
inline given create: FirstArg = ${Macros.argsImpl}
66
}
77

88
object Macros {

tests/run-macros/i6988/Test_2.scala

+4-4
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)