[Tests] Update stub consistency test data

Common metadata compiler now reports compilation errors. Disable tests
that are not yet supported or should be skipped as JVM-specific.

KTIJ-28668
This commit is contained in:
Pavel Kirpichenkov
2024-02-22 13:56:56 +02:00
committed by Space Team
parent ae664d37ae
commit d17044515f
10 changed files with 34 additions and 0 deletions
@@ -1,5 +1,8 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
/* Unsupported arguments in test metadata compiler */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
private open class ContextReceiversCallableMembers {
context(A, B)
@@ -1,5 +1,8 @@
// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
/* Unsupported arguments in test metadata compiler */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
context(A, B)
private open class ContextReceiversOnClass {
@@ -1,7 +1,10 @@
// FIR_IDENTICAL
// JVM_FILE_NAME: ContextReceiversOnFunctionTypeKt
// !LANGUAGE: +ContextReceivers
/* Unsupported arguments in test metadata compiler */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
fun f(g: context(A, B) Int.(Int) -> Int) {}
class A {
@@ -1,6 +1,9 @@
// FIR_IDENTICAL
// JVM_FILE_NAME: ContextReceiversOnTopLevelCallablesKt
// !LANGUAGE: +ContextReceivers
/* Unsupported arguments in test metadata compiler */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
context(A, B)
private fun Int.function(): Int = valueA + valueB
@@ -1,6 +1,9 @@
// FIR_IDENTICAL
// JVM_FILE_NAME: ContractsKt
/* Contract information is stored for .proto-based stubs, but not for source stubs */
// KNM_K2_IGNORE
package test
import kotlin.contracts.*
@@ -1,5 +1,8 @@
// FIR_IGNORE
// Ignored for fir, as FIR does not support org.jetbrains.kotlin.load.java.InternalFlexibleTypeTransformer
/* ft is not available in common code */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
package test
@@ -1,3 +1,7 @@
/* Unavailable @JvmName */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
@file:[JvmName("MultifileClass") JvmMultifileClass]
package test
@@ -1,4 +1,8 @@
// FIR_IDENTICAL
/* Unavailable Serializable */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
package test
import java.io.Serializable
@@ -1,4 +1,8 @@
// FIR_IDENTICAL
/* Unavailable JvmName */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
@file:Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE", "INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@file:JvmName("OtherKt")
@file:kotlin.jvm.JvmPackageName("some.other.jvm")
@@ -1,3 +1,7 @@
/* Unavailable Serializable */
// KNM_K2_IGNORE
// KNM_FE10_IGNORE
package test
import java.io.Serializable