KT-12976: add code to generated JS modules that detects wrong module order and produces human-friendly error message. Fix #KT-12976

This commit is contained in:
Alexey Andreev
2016-09-13 12:44:31 +03:00
parent d665193c20
commit 0a240b2a3a
7 changed files with 120 additions and 19 deletions
@@ -0,0 +1,14 @@
// MODULE: lib
// FILE: lib.kt
package lib
fun bar() = "OK"
// MODULE: main(lib)
// FILE: main.kt
package foo
import lib.bar
fun box() = bar()
+16
View File
@@ -0,0 +1,16 @@
// MODULE: lib
// FILE: lib.kt
// MODULE_KIND: UMD
package lib
fun bar() = "OK"
// MODULE: main(lib)
// FILE: main.kt
// MODULE_KIND: UMD
package foo
import lib.bar
fun box() = bar()