Generate delegates to multifile class members in package facade classes

(unless using -Xmultifile-package-facades option)
This commit is contained in:
Dmitry Petrov
2015-09-22 16:34:53 +03:00
parent 5cdbdfc2cc
commit 3cd1c222f0
13 changed files with 90 additions and 37 deletions
@@ -0,0 +1,7 @@
import test.TestPackage;
public class Baz {
public static String baz() {
return TestPackage.foo() + TestPackage.bar();
}
}
@@ -0,0 +1,5 @@
@file:JvmName("Util")
@file:JvmMultifileClass
package test
public fun bar(): String = "K"
@@ -0,0 +1,4 @@
@file:[JvmName("Util") JvmMultifileClass]
package test
public fun foo(): String = "O"
@@ -0,0 +1,5 @@
package test
import Baz
fun box(): String = Baz.baz()