KJS: don't export declarations marked as external or annotated by native or library annotations
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// FILE: main.kt
|
||||
|
||||
package foo
|
||||
|
||||
external class B {
|
||||
companion object {
|
||||
val value: String
|
||||
}
|
||||
}
|
||||
|
||||
inline fun test() = B.value
|
||||
|
||||
fun box(): String {
|
||||
return test()
|
||||
}
|
||||
|
||||
// FILE: native.js
|
||||
|
||||
function B() {};
|
||||
|
||||
B.value = "OK";
|
||||
Reference in New Issue
Block a user