FIR IDE: move low level api testdata sources to the analysis directory

This commit is contained in:
Ilya Kirillov
2021-09-14 16:39:48 +02:00
parent 633b0fa612
commit 989f3248e4
371 changed files with 0 additions and 0 deletions
@@ -0,0 +1,8 @@
interface A
interface X : A
interface Y : A
interface F : Y, X
interface G : Y, X
@@ -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)
}
@@ -0,0 +1,8 @@
fun Y.test(): String? {
val a = when (this) {
is F -> 1
is G -> 2
else -> return null
}
return null
}
@@ -0,0 +1,7 @@
{
"modules" : [
{ "name": "main", "dependsOn": ["dependency"] },
{ "name": "dependency" }
],
"fileToResolve": { "module": "main", "file": "main.kt" }
}