Skip to content

Commit 44c9674

Browse files
committed
Add test case for #18855
1 parent 8410a36 commit 44c9674

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/pos-macros/i18855/invoc.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import scala.language.experimental.captureChecking
2+
val x = run()
3+

tests/pos-macros/i18855/macro.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import scala.quoted.*
2+
import scala.language.experimental.captureChecking
3+
4+
def impl()(using Quotes): Expr[Unit] = '{()}
5+
inline def run(): Unit = ${impl()}
6+
7+

0 commit comments

Comments
 (0)