FIR: Fix regression-like CONFLICTING_JVM_DECLARATIONS
See the class org.ini4j.Ini used in intelliJ (derived kt class MyIni) It contains inherited remove override with the following signature: String remove(Object sectionName, Object optionName) While also, from kotlin.collections.MutableMap we inherit boolean remove(Object, Object) And we should treat them as different methods to have correct signatures in resulting class scope
This commit is contained in:
+9
@@ -638,6 +638,15 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
||||
)
|
||||
}
|
||||
|
||||
fun testFirIncorrectRemoveSignature() {
|
||||
compileKotlin(
|
||||
"source.kt", tmpdir,
|
||||
listOf(),
|
||||
additionalOptions = listOf("-Xuse-k2"),
|
||||
additionalSources = listOf("A.java", "B.java"),
|
||||
)
|
||||
}
|
||||
|
||||
fun testOldJvmAgainstJvmIr() {
|
||||
val library = compileLibrary("library", additionalOptions = listOf("-Xuse-ir"))
|
||||
compileKotlin("source.kt", tmpdir, listOf(library))
|
||||
|
||||
Reference in New Issue
Block a user