[JS IR] Support external delegation in case of JS in psi2ir
- fix FE delegation resolver - fix critical KT-40650
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1236
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// KT-40126
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: l.kt
|
||||
@file:Suppress("EXTERNAL_DELEGATION")
|
||||
|
||||
@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
|
||||
@@ -12,4 +15,9 @@ external interface MySymbolConstructor {
|
||||
operator fun invoke(description: String = definedExternally): Any
|
||||
}
|
||||
|
||||
fun box() = "OK"
|
||||
// MODULE: main(lib)
|
||||
// FILE: f.kt
|
||||
|
||||
fun foo(ee: MySymbol?) = "OK"
|
||||
|
||||
fun box() = foo(null)
|
||||
Reference in New Issue
Block a user