Refine multi-file facades generation

Do not generate delegation from multi-file facade to inline-only functions
because they are effectively private in bytecode

 #KT-10858 Fixed
This commit is contained in:
Denis Zharkov
2016-02-03 18:40:52 +03:00
parent e4583fd275
commit 889b136a68
6 changed files with 38 additions and 3 deletions
@@ -1,3 +1,7 @@
import a.foo
import a.inlineOnly
fun box(): String = foo { "OK" }
fun box(): String {
if (!a.inlineOnly<String>("OK")) return "fail 1"
return foo { "OK" }
}
@@ -3,4 +3,6 @@ package a
inline fun foo(body: () -> String): String = bar(body())
public fun bar(x: String): String = x
public fun bar(x: String): String = x
inline fun <reified T> inlineOnly(x: Any?): Boolean = x is T