mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Retain "is moved from interface companion" property flag in kotlinx-metadata-jvm
#KT-31338 Fixed
This commit is contained in:
11
compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.kt
vendored
Normal file
11
compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.kt
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
interface I {
|
||||
companion object {
|
||||
@JvmField
|
||||
val x = "x"
|
||||
|
||||
@JvmField
|
||||
val y = "y"
|
||||
}
|
||||
}
|
||||
12
compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.txt
vendored
Normal file
12
compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.txt
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
public interface I {
|
||||
|
||||
public companion object Companion {
|
||||
/*primary*/ private constructor Companion()
|
||||
@field:kotlin.jvm.JvmField public final val x: kotlin.String = "x"
|
||||
public final fun <get-x>(): kotlin.String
|
||||
@field:kotlin.jvm.JvmField public final val y: kotlin.String = "y"
|
||||
public final fun <get-y>(): kotlin.String
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user