KT-12877: support plain reference to declaration in UMD wrapper, support plain reference to package

This commit is contained in:
Alexey Andreev
2016-07-05 11:45:33 +03:00
committed by Alexey Andreev
parent 495c876b3b
commit d63a727474
12 changed files with 285 additions and 42 deletions
@@ -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"
}