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,21 @@
// EXPECTED_REACHABLE_NODES: 995
// FILE: A.kt
open class A {
open fun f(): Int = 1
}
// FILE: useA.kt
// RECOMPILE
fun useA(a: A): Int = a.f()
fun useList(xs: List<Int>) {}
// FILE: box.kt
fun box(): String {
val result = useA(A())
if (result != 1) return "fail: result of 'useA(A())' is '$result', but '1' was expected"
return "OK"
}