[JS IC] fix cross-module nested class references and interface inheritance

^ KT-50528 fixed
This commit is contained in:
Anton Bannykh
2021-12-28 13:44:05 +03:00
committed by teamcity
parent 3fe05233e2
commit 1b631da3a0
7 changed files with 74 additions and 4 deletions
@@ -0,0 +1,27 @@
// NO_COMMON_FILES
// MODULE: lib
// FILE: lib.kt
package lib
interface A {
fun foo() = 23
}
// MODULE: main(lib)
// FILE: main.kt
// RECOMPILE
package main
import lib.A
class B : A {
fun bar() = foo() + 1
}
fun box(): String {
val result = B().bar()
if (result != 24) return "fail: $result"
return "OK"
}