[JS IR BE] Add @JsName to inheritanceInNativeClass.kt test to avoid relying on mangling
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// SKIP_MINIFICATION
|
||||
// Contains calls from external JS code
|
||||
package foo
|
||||
|
||||
open class A {
|
||||
@JsName("foo")
|
||||
open protected fun foo(n: Int) = 23
|
||||
|
||||
@JsName("bar")
|
||||
fun bar(n: Int) = foo(n) + 100
|
||||
}
|
||||
|
||||
open class B {
|
||||
@JsName("foo")
|
||||
protected fun foo(n: Int) = 42
|
||||
|
||||
@JsName("bar")
|
||||
open fun bar(n: Int) = 142
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user