Skip to content

Commit 5f8b24b

Browse files
nicolasstuckiodersky
authored andcommitted
Add regression test
1 parent 46c6a6a commit 5f8b24b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import scala.quoted.*
2+
3+
inline def foo(x: => Any): Unit =
4+
${ impl('x) }
5+
6+
private def impl(x: Expr[Any])(using Quotes) : Expr[Unit] = {
7+
'{
8+
val a = $x
9+
}
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def test = foo(null)

0 commit comments

Comments
 (0)