[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:
committed by
Space Team
parent
ae664d37ae
commit
d17044515f
+3
@@ -1,5 +1,8 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
// !LANGUAGE: +ContextReceivers
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
/* Unsupported arguments in test metadata compiler */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
private open class ContextReceiversCallableMembers {
|
private open class ContextReceiversCallableMembers {
|
||||||
context(A, B)
|
context(A, B)
|
||||||
|
|||||||
+3
@@ -1,5 +1,8 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
// !LANGUAGE: +ContextReceivers
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
/* Unsupported arguments in test metadata compiler */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
context(A, B)
|
context(A, B)
|
||||||
private open class ContextReceiversOnClass {
|
private open class ContextReceiversOnClass {
|
||||||
|
|||||||
+3
@@ -1,7 +1,10 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
// JVM_FILE_NAME: ContextReceiversOnFunctionTypeKt
|
// JVM_FILE_NAME: ContextReceiversOnFunctionTypeKt
|
||||||
// !LANGUAGE: +ContextReceivers
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
/* Unsupported arguments in test metadata compiler */
|
||||||
// KNM_K2_IGNORE
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
fun f(g: context(A, B) Int.(Int) -> Int) {}
|
fun f(g: context(A, B) Int.(Int) -> Int) {}
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|||||||
+3
@@ -1,6 +1,9 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
// JVM_FILE_NAME: ContextReceiversOnTopLevelCallablesKt
|
// JVM_FILE_NAME: ContextReceiversOnTopLevelCallablesKt
|
||||||
// !LANGUAGE: +ContextReceivers
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
/* Unsupported arguments in test metadata compiler */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
context(A, B)
|
context(A, B)
|
||||||
private fun Int.function(): Int = valueA + valueB
|
private fun Int.function(): Int = valueA + valueB
|
||||||
|
|||||||
Vendored
+3
@@ -1,6 +1,9 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
// JVM_FILE_NAME: ContractsKt
|
// JVM_FILE_NAME: ContractsKt
|
||||||
|
|
||||||
|
/* Contract information is stored for .proto-based stubs, but not for source stubs */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
import kotlin.contracts.*
|
import kotlin.contracts.*
|
||||||
|
|||||||
+3
@@ -1,5 +1,8 @@
|
|||||||
// FIR_IGNORE
|
// FIR_IGNORE
|
||||||
// Ignored for fir, as FIR does not support org.jetbrains.kotlin.load.java.InternalFlexibleTypeTransformer
|
// 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
|
package test
|
||||||
|
|
||||||
|
|||||||
+4
@@ -1,3 +1,7 @@
|
|||||||
|
/* Unavailable @JvmName */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
||||||
package test
|
package test
|
||||||
|
|
||||||
|
|||||||
+4
@@ -1,4 +1,8 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
|
/* Unavailable Serializable */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|||||||
+4
@@ -1,4 +1,8 @@
|
|||||||
// FIR_IDENTICAL
|
// FIR_IDENTICAL
|
||||||
|
/* Unavailable JvmName */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
@file:Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE", "INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
@file:Suppress("UNCHECKED_CAST", "NOTHING_TO_INLINE", "INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||||
@file:JvmName("OtherKt")
|
@file:JvmName("OtherKt")
|
||||||
@file:kotlin.jvm.JvmPackageName("some.other.jvm")
|
@file:kotlin.jvm.JvmPackageName("some.other.jvm")
|
||||||
|
|||||||
Vendored
+4
@@ -1,3 +1,7 @@
|
|||||||
|
/* Unavailable Serializable */
|
||||||
|
// KNM_K2_IGNORE
|
||||||
|
// KNM_FE10_IGNORE
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
|
|||||||
Reference in New Issue
Block a user