Skip to content

Commit f8f3057

Browse files
committed
Add regression test
Closes #11162
1 parent 4bf2f04 commit f8f3057

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/run-staging/i11162.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import scala.quoted.*
2+
3+
object Test {
4+
5+
given staging.Compiler = staging.Compiler.make(getClass.getClassLoader)
6+
7+
def main(args: Array[String]): Unit =
8+
staging.run {
9+
'{ foo() }
10+
}
11+
12+
inline def foo(): Unit = ${ fooExpr() }
13+
14+
private def fooExpr()(using Quotes): Expr[Unit] = '{ println("foo") }
15+
}

0 commit comments

Comments
 (0)