Fix searching serialized classes package contains multiple fragments

This commit is contained in:
Alexey Tsvetkov
2017-07-20 11:21:02 +03:00
parent b54414d628
commit 1c4ada2008
12 changed files with 98 additions and 11 deletions
@@ -0,0 +1,25 @@
// EXPECTED_REACHABLE_NODES: 1002
// FILE: A.kt
open class A {
open fun f(): Int = 1
}
// FILE: B.kt
// RECOMPILE
class B : A() {
override fun f(): Int = super.f() + 2
}
// FILE: box.kt
fun box(): String {
val af = A().f()
if (af != 1) return "fail: result of 'A().f()' is '$af', but '1' was expected"
val bf = B().f()
if (bf != 3) return "fail: result of 'B().f()' is '$bf', but '3' was expected"
return "OK"
}