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.
import scala.quoted._ import dotty.tools.dotc.quoted.Toolbox._ object Macros { inline def foo(i: Int): Int = ~{ val y = ('(i)).run y.toExpr } }
import Macros._ object Test { def main(args: Array[String]): Unit = { println(foo(1)) println(foo(1 + 3)) // Crashes the compiler } }