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 4236bfa commit 53d565eCopy full SHA for 53d565e
tests/run-staging/i19170b.scala
@@ -10,6 +10,12 @@ def f(i: Expr[Int])(using Quotes): Expr[A] = { '{ new A($i) } }
10
@main def Test = {
11
// The heuristic to give the extra information does not work on JDK 8
12
if System.getProperty("java.specification.version") != "8" then
13
+ throw new Exception(
14
+ s"""|java.version = ${System.getProperty("java.version")}
15
+ |java.specification.version = ${System.getProperty("java.specification.version")}
16
+ |os.name = ${System.getProperty("os.name")}
17
+ |""".stripMargin
18
+ )
19
try
20
val g: Int => A = staging.run { '{ (i: Int) => ${ f('{i}) } } }
21
println(g(3))
0 commit comments