Skip to content

Commit f87f2cf

Browse files
Backport "Disable i19170b on JDK8" to LTS (#20847)
Backports #19484 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents f2418bf + 2296b60 commit f87f2cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run-staging/i19170b.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class A(i: Int)
88
def f(i: Expr[Int])(using Quotes): Expr[A] = { '{ new A($i) } }
99

1010
@main def Test = {
11-
if !System.getProperty("os.name").contains("Windows") then
11+
// The heuristic to give the extra information does not work on JDK 8
12+
if System.getProperty("java.specification.version") != "1.8" then
1213
try
1314
val g: Int => A = staging.run { '{ (i: Int) => ${ f('{i}) } } }
1415
println(g(3))

0 commit comments

Comments
 (0)