Workaround for the case when some classes are unloaded during ranking (KT-25774)

It's important that ranking preserve order of files found
in findFilesByNameInPackage()

It's only a workaround because it's expected for debugger to have
classes unloaded and some valid variants might get bad rank and
rejected because of that.

 #KT-25774 Fixed
This commit is contained in:
Nikolay Krasko
2018-07-31 19:18:06 +03:00
parent da6bcc9d46
commit f9845bab54
6 changed files with 106 additions and 13 deletions
@@ -0,0 +1,35 @@
//FILE: a/a.kt
package a
import c.*
class B : A<SomeImpl>() {
override fun x(some: SomeImpl) {
foo()
}
}
// DO_NOT_LOAD: a.SomeImpl
class SomeImpl : Some()
//FILE: b/a.kt
package b
import c.*
class B : A<Some>() {
override fun x(some: Some) {
foo()
}
}
//FILE: c/c.kt
package c
open class Some
abstract class A<T: Some> {
abstract fun x(a: T)
}
fun foo() {}