JVM: allow -jvm-target 1.8 with -Xjdk-release=1.6

#KT-59098
This commit is contained in:
Alexander Udalov
2024-02-14 13:34:00 +01:00
committed by Space Team
parent 1bc08fc5b8
commit 12f393791b
8 changed files with 53 additions and 2 deletions
@@ -0,0 +1,7 @@
compiler/testData/cli/jvm/jdkRelease.kt:3:22: error: unresolved reference 'file'.
fun path(): java.nio.file.Path? = null
^^^^
compiler/testData/cli/jvm/jdkRelease.kt:5:26: error: unresolved reference 'stream'.
fun stream() = java.util.stream.Stream.of(42)
^^^^^^
COMPILATION_ERROR