[K/N][tests] Added a bunch of tests on incremental compilation

This commit is contained in:
Igor Chevdar
2023-01-04 22:46:26 +02:00
committed by Space Team
parent e4f30589a4
commit 9fcb4ece64
58 changed files with 956 additions and 9 deletions
@@ -0,0 +1,6 @@
package test1
open class A {
open fun baz() = "qxx"
open fun foo() = 117
}
@@ -0,0 +1,5 @@
package test1
open class A {
open fun foo() = 117
}
@@ -0,0 +1,5 @@
package test1
open class B : A() {
open fun bar() = "zzz"
}
@@ -0,0 +1,5 @@
package test2
import test1.*
fun bar(b: B) = b.bar()
@@ -0,0 +1,12 @@
import kotlin.test.*
import test1.*
import test2.*
class C : B() {
override fun bar() = "qzz"
}
@Test
fun runTest() {
assertEquals("qzz", bar(C()))
}