Fix JvmFieldInInterfaceCompanion.kt for language version 1.4
Since 1.4, constant value is no longer written to the class file (and thus cannot be read) for non-const properties. But in sources, corresponding property descriptors still have the initializer which is rendered to text. Therefore we disable the source-vs-binary check and update the test data to check the new behavior.
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
// NO_CHECK_SOURCE_VS_BINARY
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-2
@@ -4,9 +4,9 @@ public interface I {
|
|||||||
|
|
||||||
public companion object Companion {
|
public companion object Companion {
|
||||||
/*primary*/ private constructor Companion()
|
/*primary*/ private constructor Companion()
|
||||||
@field:kotlin.jvm.JvmField public final val x: kotlin.String = "x"
|
@field:kotlin.jvm.JvmField public final val x: kotlin.String
|
||||||
public final fun <get-x>(): kotlin.String
|
public final fun <get-x>(): kotlin.String
|
||||||
@field:kotlin.jvm.JvmField public final val y: kotlin.String = "y"
|
@field:kotlin.jvm.JvmField public final val y: kotlin.String
|
||||||
public final fun <get-y>(): kotlin.String
|
public final fun <get-y>(): kotlin.String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user