JS: avoid repeated export of the same declaration

This commit is contained in:
Alexey Andreev
2017-03-20 14:29:34 +03:00
parent dd43d0a9e0
commit 1c2120d7e2
14 changed files with 343 additions and 127 deletions
@@ -0,0 +1,12 @@
// PROPERTY_WRITE_COUNT: name=foo_61zpoe$ count=1
// FILE: a.kt
fun foo(x: String): String = x
inline fun o() = foo("O")
// FILE: b.kt
inline fun k() = foo("K")
// FILE: c.kt
// RECOMPILE
fun box() = o() + k()