Skip to content

Commit 2296b60

Browse files
nicolasstuckiWojciechMazur
authored andcommitted
Disable i19170b on JDK8
Fixes #19481 [Cherry-picked a8277a7]
1 parent c4d6ab2 commit 2296b60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/run-staging/i19170b.scala

+2-1
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)