KT-44741: Update test data to use companion object with custom name
Test: Existing IncrementalJvmCompilerRunnerTestGenerated.PureKotlin#testCompanionConstantChanged
and similar *.PureKotlin#testCompanionConstantChanged tests
This commit is contained in:
committed by
nataliya.valtman
parent
070f537ee9
commit
9e1a771d57
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
companion object {
|
companion object CompanionObject {
|
||||||
const val CONSTANT_VALUE = 16
|
const val CONSTANT_VALUE = 16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package test
|
package test
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
companion object {
|
companion object CompanionObject {
|
||||||
const val CONSTANT_VALUE = 17
|
const val CONSTANT_VALUE = 17
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
import test.A.Companion.CONSTANT_VALUE
|
import test.A.CompanionObject.CONSTANT_VALUE
|
||||||
|
|
||||||
class B {
|
class B {
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package foo
|
package foo
|
||||||
|
|
||||||
import test.A.Companion.CONSTANT_VALUE
|
import test.A.CompanionObject.CONSTANT_VALUE
|
||||||
|
|
||||||
fun importCompanionConstant() = "Import companion constant: ${CONSTANT_VALUE}"
|
fun importCompanionConstant() = "Import companion constant: ${CONSTANT_VALUE}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user