FIR IDE: move low level api testdata sources to the analysis directory
This commit is contained in:
analysis/low-level-api-fir/testdata/multiModuleLazyResolve/whenWithHeiarchy/dependency/dependency.kt
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
interface A
|
||||
|
||||
interface X : A
|
||||
interface Y : A
|
||||
|
||||
interface F : Y, X
|
||||
interface G : Y, X
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
FILE: main.kt
|
||||
public final fun R|Y|.test(): R|kotlin/String?| {
|
||||
lval a: R|kotlin/Int| = when (this@R|/test|) {
|
||||
($subj$ is R|F|) -> {
|
||||
Int(1)
|
||||
}
|
||||
($subj$ is R|G|) -> {
|
||||
Int(2)
|
||||
}
|
||||
else -> {
|
||||
^test Null(null)
|
||||
}
|
||||
}
|
||||
|
||||
^test Null(null)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fun Y.test(): String? {
|
||||
val a = when (this) {
|
||||
is F -> 1
|
||||
is G -> 2
|
||||
else -> return null
|
||||
}
|
||||
return null
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"modules" : [
|
||||
{ "name": "main", "dependsOn": ["dependency"] },
|
||||
{ "name": "dependency" }
|
||||
],
|
||||
"fileToResolve": { "module": "main", "file": "main.kt" }
|
||||
}
|
||||
Reference in New Issue
Block a user