[klib] Add a test for KT-65551
This commit is contained in:
committed by
Space Team
parent
03ca64c954
commit
0c0943a880
+26
-2
@@ -6,11 +6,35 @@ Module: common
|
|||||||
/common.kt:10:1: error: Platform declaration clash: The following functions have the same IR signature (/bar|bar(B){}[0]):
|
/common.kt:10:1: error: Platform declaration clash: The following functions have the same IR signature (/bar|bar(B){}[0]):
|
||||||
fun bar(x: B): kotlin.Int defined in root package
|
fun bar(x: B): kotlin.Int defined in root package
|
||||||
fun bar(x: B): kotlin.Int defined in root package
|
fun bar(x: B): kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/common.kt:13:1: error: Platform declaration clash: The following properties have the same IR signature (/param|{}param[0]):
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/common.kt:13:1: error: Platform declaration clash: The following fields have the same IR signature ([ /param|{}param[0] <- Local[<BF>|FIELD PROPERTY_BACKING_FIELD name:param type:kotlin.Int visibility:private [final,static]] ]):
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/common.kt:13:1: error: Platform declaration clash: The following functions have the same IR signature (/param.<get-param>|<get-param>(){}[0]):
|
||||||
|
fun `<get-param>`(): kotlin.Int defined in root package
|
||||||
|
fun `<get-param>`(): kotlin.Int defined in root package
|
||||||
Module: platform
|
Module: platform
|
||||||
/platform.kt:14:1: error: Platform declaration clash: The following functions have the same IR signature (/foo|foo(){}[0]):
|
/platform.kt:17:1: error: Platform declaration clash: The following functions have the same IR signature (/foo|foo(){}[0]):
|
||||||
fun foo(): kotlin.Int defined in root package
|
fun foo(): kotlin.Int defined in root package
|
||||||
fun foo(): kotlin.String defined in root package
|
fun foo(): kotlin.String defined in root package
|
||||||
|
|
||||||
/platform.kt:18:1: error: Platform declaration clash: The following functions have the same IR signature (/bar|bar(B){}[0]):
|
/platform.kt:21:1: error: Platform declaration clash: The following functions have the same IR signature (/bar|bar(B){}[0]):
|
||||||
fun bar(x: B): kotlin.Int defined in root package
|
fun bar(x: B): kotlin.Int defined in root package
|
||||||
fun bar(x: B): kotlin.Int defined in root package
|
fun bar(x: B): kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/platform.kt:24:1: error: Platform declaration clash: The following properties have the same IR signature (/param|{}param[0]):
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/platform.kt:24:1: error: Platform declaration clash: The following fields have the same IR signature ([ /param|{}param[0] <- Local[<BF>|FIELD PROPERTY_BACKING_FIELD name:param type:kotlin.Int visibility:private [final,static]] ]):
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
val param: kotlin.Int defined in root package
|
||||||
|
|
||||||
|
/platform.kt:24:1: error: Platform declaration clash: The following functions have the same IR signature (/param.<get-param>|<get-param>(){}[0]):
|
||||||
|
fun `<get-param>`(): kotlin.Int defined in root package
|
||||||
|
fun `<get-param>`(): kotlin.Int defined in root package
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
expect class A
|
expect class A
|
||||||
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun bar(x: A): Int = 2<!>
|
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun bar(x: A): Int = 2<!>
|
||||||
|
|
||||||
|
// NOTE: This must be REDECLARATION, see KT-59898
|
||||||
|
<!CONFLICTING_KLIB_SIGNATURES_ERROR, CONFLICTING_KLIB_SIGNATURES_ERROR, CONFLICTING_KLIB_SIGNATURES_ERROR!>val param = 0<!>
|
||||||
|
|
||||||
// MODULE: platform()()(common)
|
// MODULE: platform()()(common)
|
||||||
// FILE: platform.kt
|
// FILE: platform.kt
|
||||||
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun foo(): Int = 0<!>
|
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun foo(): Int = 0<!>
|
||||||
@@ -16,3 +19,6 @@ expect class A
|
|||||||
class B
|
class B
|
||||||
actual typealias A = B
|
actual typealias A = B
|
||||||
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun bar(x: B): Int = 3<!>
|
<!CONFLICTING_KLIB_SIGNATURES_ERROR!>fun bar(x: B): Int = 3<!>
|
||||||
|
|
||||||
|
// NOTE: This must be REDECLARATION, see KT-59898
|
||||||
|
<!CONFLICTING_KLIB_SIGNATURES_ERROR, CONFLICTING_KLIB_SIGNATURES_ERROR, CONFLICTING_KLIB_SIGNATURES_ERROR!>val param = 0<!>
|
||||||
|
|||||||
Reference in New Issue
Block a user