Make stdlib work with -Xmultifile-package-facades.
Fixed wrong owner mapping in presence of -Xmultifile-package-facades. Fixed backing field mapping issue. Added more tests.
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
@file:[JvmName("Util") JvmMultifileClass]
|
||||
package test
|
||||
|
||||
public fun publicInOtherFile() {}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
@file:[JvmName("Util") JvmMultifileClass]
|
||||
package test
|
||||
|
||||
inline fun foo(body: () -> Unit) {
|
||||
publicInThisFile()
|
||||
publicInOtherFile()
|
||||
body()
|
||||
}
|
||||
|
||||
public fun publicInThisFile() {}
|
||||
|
||||
fun bar() {
|
||||
foo {}
|
||||
}
|
||||
|
||||
// @test/Util__ThisFileKt.class:
|
||||
// 2 INVOKESTATIC test/Util.publicInThisFile
|
||||
// 2 INVOKESTATIC test/Util.publicInOtherFile
|
||||
Reference in New Issue
Block a user