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 dc8920b commit 3779c8eCopy full SHA for 3779c8e
compiler/src/dotty/tools/dotc/interpreter/Interpreter.scala
@@ -69,7 +69,7 @@ class Interpreter(implicit ctx: Context) {
69
70
tree match {
71
case Quoted(quotedTree) =>
72
- if (tree.isTerm) new scala.quoted.Exprs.TreeExpr(quotedTree)
+ if (quotedTree.isTerm) new scala.quoted.Exprs.TreeExpr(quotedTree)
73
else new scala.quoted.Types.TreeType(quotedTree)
74
75
case Literal(Constant(c)) => c.asInstanceOf[Object]
tests/pos/macro-with-type/Macro_1.scala
@@ -0,0 +1,5 @@
1
+import scala.quoted._
2
+object Macro {
3
+ inline def ff: Unit = ~impl('[Int])
4
+ def impl(t: Type[Int]): Expr[Unit] = ()
5
+}
tests/pos/macro-with-type/Test_2.scala
@@ -0,0 +1,3 @@
+object Test {
+ Macro.ff
0 commit comments