KT-12877: support plain reference to declaration in UMD wrapper, support plain reference to package
This commit is contained in:
committed by
Alexey Andreev
parent
495c876b3b
commit
d63a727474
@@ -2,11 +2,17 @@
|
||||
// NO_JS_MODULE_SYSTEM
|
||||
package foo
|
||||
|
||||
@JsModule("lib")
|
||||
@JsModule("libfoo")
|
||||
@JsNonModule
|
||||
@native fun foo(x: Int): Int = noImpl
|
||||
|
||||
@JsModule("libbar")
|
||||
@JsNonModule
|
||||
@JsName("baz")
|
||||
@native fun bar(x: Int): Int = noImpl
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(65, foo(42))
|
||||
assertEquals(142, bar(100))
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user