Skip to content

Commit 53d565e

Browse files
committed
WIP Get info from CI
1 parent 4236bfa commit 53d565e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/run-staging/i19170b.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ def f(i: Expr[Int])(using Quotes): Expr[A] = { '{ new A($i) } }
1010
@main def Test = {
1111
// The heuristic to give the extra information does not work on JDK 8
1212
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+
)
1319
try
1420
val g: Int => A = staging.run { '{ (i: Int) => ${ f('{i}) } } }
1521
println(g(3))

0 commit comments

Comments
 (0)