238344758b
Fix an issue where an inherited @JsName from another module was not accessible in a child class. The issue can only be reproduced in the codegen box tests and cannot be reproduced in the FIR FE checker tests.
21 lines
283 B
Kotlin
Vendored
21 lines
283 B
Kotlin
Vendored
// MODULE: lib
|
|
// FILE: TestDemo1.kt
|
|
package TestDemo1
|
|
|
|
abstract class Class {
|
|
open val ok = "OK"
|
|
|
|
@JsName("okFun")
|
|
fun ok() = ok
|
|
}
|
|
|
|
// FILE: TestDemo2.kt
|
|
// MODULE: main(lib)
|
|
package TestDemo2
|
|
|
|
import TestDemo1.Class
|
|
|
|
class MyClass : Class()
|
|
|
|
fun box() = MyClass().ok()
|