Files
kotlin-fork/compiler/testData/diagnostics/klibSerializationTests/signatureClash_MPP.diag.txt
T
Sergej Jaskiewicz 5836067082 [klib] Add error suppression to a signature clash diagnostic test
Currently, REDECLARATION is not reported if two conflicting declarations
are in different source sets (KT-59898). However, when it's fixed,
we want this test to keep testing the signature clash diagnostic,
and not fail because of unexpected REDECLARATION error.
2024-02-12 11:22:47 +00:00

33 lines
1.9 KiB
Plaintext
Vendored

Module: common
/common.kt:8: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.String defined in root package
/common.kt:11: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
/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 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
/platform.kt:18: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.String defined in root package
/platform.kt:22: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
/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 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