We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145db07 commit ade87abCopy full SHA for ade87ab
tests/pos/i6214b.scala
@@ -0,0 +1,8 @@
1
+object Test {
2
+ def res(x: quoted.Expr[Int]) given tasty.Reflection: quoted.Expr[Int] = x match {
3
+ case '{ val a: Int = ${ Foo('{ val b: Int = $y; b }) }; a } => y // owner of y is res
4
+ }
5
+ object Foo {
6
+ def unapply(x: quoted.Expr[Int]): Option[quoted.Expr[Int]] = Some(x)
7
8
+}
0 commit comments