[FIR] Properly setup java parser version for CLI pipeline with light tree
^KT-56549 Fixed
This commit is contained in:
committed by
Space Team
parent
f836d16dc6
commit
e0fa1e64b9
@@ -0,0 +1,8 @@
|
||||
$TESTDATA_DIR$/javaSealedClass/SealedJava.java
|
||||
$TESTDATA_DIR$/javaSealedClass/SubSealedAJava.java
|
||||
$TESTDATA_DIR$/javaSealedClass/SubSealedBJava.java
|
||||
$TESTDATA_DIR$/javaSealedClass/javaSealedClass.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-language-version
|
||||
2.0
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
OK
|
||||
@@ -0,0 +1 @@
|
||||
public abstract sealed class SealedJava permits SubSealedAJava, SubSealedBJava {}
|
||||
@@ -0,0 +1 @@
|
||||
public final class SubSealedAJava extends SealedJava {}
|
||||
@@ -0,0 +1 @@
|
||||
public non-sealed class SubSealedBJava extends SealedJava {}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun test(sj: SealedJava) = when (sj) {
|
||||
is SubSealedAJava -> "O"
|
||||
is SubSealedBJava -> "K"
|
||||
}
|
||||
Reference in New Issue
Block a user