[FIR] Bring equivalent call behavior closer to K1

#KT-61159 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-14 17:01:29 +02:00
committed by Space Team
parent 7c67e9e08b
commit fa77e3952d
39 changed files with 408 additions and 126 deletions
@@ -273,6 +273,16 @@ abstract class AbstractCompileKotlinAgainstCustomBinariesTest : AbstractKotlinCo
doTestPreReleaseKotlinLibrary(K2JVMCompiler(), "library", tmpdir, "-Xallow-unstable-dependencies", "-Xskip-prerelease-check")
}
// KT-61051 K1/K2 difference on extension functions with specific extension receiver types when compiling code that has itself as a dependency
fun testDependencyOnItself() {
val compiledLibrary = compileLibrary("library")
compileKotlin(
"library/sample.kt",
output = tmpdir,
classpath = listOf(compiledLibrary),
)
}
// KT-60795 K2: missing INCOMPATIBLE_CLASS and corresponding CLI error
fun testWrongMetadataVersion() = muteForK2 {
doTestKotlinLibraryWithWrongMetadataVersion("library", null)