mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
Do not query MultifileClassCodegen#classBuilder early on: this causes the class file for the facade to be prematurely dumped to the disk in some cases, when that class file is not yet completely generated. Instead fork the logic in PropertyCodegen#generateSyntheticMethodIfNeeded: save metadata in parts, generate method in the facade
15 lines
298 B
Kotlin
Vendored
15 lines
298 B
Kotlin
Vendored
@file:JvmName("MultifileClass")
|
|
@file:JvmMultifileClass
|
|
package test
|
|
|
|
public val val1a = 42
|
|
private val String.val2a: Int get() = 0
|
|
public fun fn1a() {}
|
|
public fun String.fn2a() {}
|
|
|
|
class ShouldNotBeVisible1
|
|
interface ShouldNotBeVisible2
|
|
|
|
@Deprecated("deprecated")
|
|
const val annotatedConstVal = 42
|