d0ed0c4049
- Use direct access to property defined into companion object when it is possible rather than always use an accessor to access the property. - Use direct access will speedup runtime performance. - Avoid to generate useless accessors for companion properties. Fix of https://youtrack.jetbrains.com/issue/KT-14258
71 lines
4.7 KiB
Plaintext
Vendored
71 lines
4.7 KiB
Plaintext
Vendored
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
fun <get-foo>(): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
|
fun <get-foo>(): Int defined in A.Companion
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:1:7: error: platform declaration clash: The following declarations have the same JVM signature (access$getBar$lp(LA;)I):
|
|
fun <get-bar>(): Int defined in A
|
|
fun `access$getBar$lp`(a: A): Int defined in A
|
|
class A {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:5:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA;)I):
|
|
fun <get-foo>(): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int defined in A
|
|
fun `access$getFoo$p`(a: A): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:6:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA;I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int): Unit defined in A
|
|
fun `access$setFoo$p`(a: A, d: Int) {}
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:9:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$cp()I):
|
|
fun <get-foo>(): Int defined in A.Companion
|
|
fun `access$getFoo$cp`(): Int defined in A
|
|
fun `access$getFoo$cp`(): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:10:5: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$cp(I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
fun `access$setFoo$cp`(d: Int): Unit defined in A
|
|
fun `access$setFoo$cp`(d: Int) {}
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:16:5: error: platform declaration clash: The following declarations have the same JVM signature (access$getBar$lp(LA;)I):
|
|
fun <get-bar>(): Int defined in A
|
|
fun `access$getBar$lp`(a: A): Int defined in A
|
|
fun `access$getBar$lp`(a: A): Int = 7
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:18:15: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA$Companion;)I):
|
|
fun <get-foo>(): Int defined in A.Companion
|
|
fun `access$getFoo$p`(p: A.Companion): Int defined in A.Companion
|
|
companion object {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:18:15: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA$Companion;I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
fun `access$setFoo$p`(p: A.Companion, d: Int): Unit defined in A.Companion
|
|
companion object {
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:30:9: error: platform declaration clash: The following declarations have the same JVM signature (access$getFoo$p(LA$Companion;)I):
|
|
fun <get-foo>(): Int defined in A.Companion
|
|
fun `access$getFoo$p`(p: A.Companion): Int defined in A.Companion
|
|
fun `access$getFoo$p`(p: A.Companion): Int = 1
|
|
^
|
|
compiler/testData/cli/jvm/syntheticAccessorForPropertiesSignatureClash.kt:31:9: error: platform declaration clash: The following declarations have the same JVM signature (access$setFoo$p(LA$Companion;I)V):
|
|
fun <set-foo>(<set-?>: Int): Unit defined in A.Companion
|
|
fun `access$setFoo$p`(p: A.Companion, d: Int): Unit defined in A.Companion
|
|
fun `access$setFoo$p`(p: A.Companion, d: Int) {}
|
|
^
|
|
COMPILATION_ERROR |