Generate delegates to multifile class members in package facade classes
(unless using -Xmultifile-package-facades option)
This commit is contained in:
@@ -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"
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
import Baz
|
||||
|
||||
fun box(): String = Baz.baz()
|
||||
Reference in New Issue
Block a user