791be7c2dc
When copying top level declarations from multifile parts to facades, also copy corresponding properties. This allows to keep their annotations, which are later used in codegen (for example, to generate ACC_DEPRECATED on property accessors), and allows to get rid of the hack where the JVM name of the property accessor was computed prematurely via methodSignatureMapper. Also, don't copy `$annotations` methods for non-const properties to facades because the old backend only generates them in parts (which might be a separate problem, see KT-27644). #KT-40262 Fixed
23 lines
288 B
Kotlin
Vendored
23 lines
288 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// FILE: part.kt
|
|
|
|
@file:JvmMultifileClass
|
|
@file:JvmName("A")
|
|
|
|
package test
|
|
|
|
@Deprecated("")
|
|
val str: String
|
|
get() = ""
|
|
|
|
@Deprecated("")
|
|
fun f() {}
|
|
|
|
@Deprecated("")
|
|
val Int.ext: Int get() = this
|
|
|
|
var Int.extA: Int
|
|
get() = this
|
|
@Deprecated("")
|
|
set(value) {}
|