Tests: remove actualTypealiasToCompiledInlineClass test

This test uses multiple features which are obsolete and will be
discontinued soon:
- Language version 1.4
- Expect/actual declarations in the same module
- Declaring inline classes via "inline class"
This commit is contained in:
Alexander Udalov
2023-08-03 15:16:18 +02:00
committed by Space Team
parent bad7fa597b
commit 21c7325dbe
7 changed files with 0 additions and 67 deletions
@@ -1,12 +0,0 @@
@file:Suppress("EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE")
package test
@Suppress("INLINE_CLASS_DEPRECATED", "EXPERIMENTAL_FEATURE_WARNING")
expect inline class ExpectInlineActualInline(val value: Int)
@Suppress("INLINE_CLASS_DEPRECATED", "EXPERIMENTAL_FEATURE_WARNING")
expect inline class ExpectInlineActualValue(val value: Int)
actual typealias ExpectInlineActualInline = lib.InlineClass
actual typealias ExpectInlineActualValue = lib.ValueClass
@@ -1,12 +0,0 @@
@file:Suppress("EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE")
package test
@kotlin.jvm.JvmInline
expect value class ExpectValueActualInline(val value: Int)
@kotlin.jvm.JvmInline
expect value class ExpectValueActualValue(val value: Int)
actual typealias ExpectValueActualInline = lib.InlineClass
actual typealias ExpectValueActualValue = lib.ValueClass
@@ -1,4 +0,0 @@
package lib
@Suppress("INLINE_CLASS_DEPRECATED", "EXPERIMENTAL_FEATURE_WARNING")
inline class InlineClass(val value: Int)
@@ -1,4 +0,0 @@
package lib
@kotlin.jvm.JvmInline
value class ValueClass(val value: Int)
@@ -1,2 +0,0 @@
warning: language version 1.4 is deprecated and its support will be removed in a future version of Kotlin
OK
@@ -696,38 +696,6 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
)
}
fun testActualTypealiasToCompiledInlineClass() {
val library14 = compileLibrary(
"library14",
additionalOptions = listOf("-language-version", "1.4"),
checkKotlinOutput = { result ->
KotlinTestUtils.assertEqualsToFile(
"Expected output check failed",
File(testDataDirectory, "output14.txt"),
result
)
}
)
val library16 = compileLibrary(
"library16",
additionalOptions = listOf("-language-version", "1.6")
)
compileKotlin(
"expectActualLv14.kt",
output = tmpdir,
classpath = listOf(library14, library16),
additionalOptions = listOf("-language-version", "1.4", "-Xmulti-platform"),
expectedFileName = "output14.txt",
)
compileKotlin(
"expectActualLv16.kt",
output = tmpdir,
classpath = listOf(library14, library16),
additionalOptions = listOf("-language-version", "1.6", "-Xmulti-platform"),
expectedFileName = "output16.txt",
)
}
fun testDeserializedAnnotationReferencesJava() {
// Only Java
val libraryAnnotation = compileLibrary("libraryAnnotation")