[K2] Ignore failing metadata tests while working on them.

This commit is contained in:
Mads Ager
2023-03-10 12:48:31 +01:00
committed by Space Cloud
parent 7b7da66d2b
commit 46db4b4e6d
16 changed files with 32 additions and 0 deletions
@@ -35,6 +35,10 @@ fun compileAndPrintAllFiles(
readWriteAndCompare: Boolean,
useK2: Boolean
) {
if (useK2 && InTextDirectivesUtils.findStringWithPrefixes(file.readText(), "// IGNORE K2") != null) {
return
}
val main = StringBuilder()
val afterVisitors = StringBuilder()
val afterNodes = StringBuilder()
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
import kotlin.reflect.KClass
@Target(AnnotationTarget.TYPE)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE K2
// !LANGUAGE: +EnumEntries
enum class MyEnum {
@@ -1,3 +1,5 @@
// IGNORE K2
interface A
interface B
class Inv<T>(e: T)
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() {
val f = {}
val g = fun Unit.(s: IntArray?, t: Set<Double>): String { return "" }
@@ -1,3 +1,5 @@
// IGNORE K2
import kotlin.reflect.KProperty
class Delegate<T>(val value: T? = null) {
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
interface A {
interface B {
interface C
@@ -1,3 +1,4 @@
// IGNORE K2
// !LANGUAGE: +MultiPlatformProjects
// !OPT_IN: kotlin.ExperimentalMultiplatform
// NO_READ_WRITE_COMPARE
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
class SimpleClass<in A>(val p: Int = 42) {
constructor(s: Array<String?>?) : this(s?.size ?: 0)
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
internal inline fun <reified X : Any> topLevelFun(x: X) = X::class
var topLevelProp: String? = null
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
class A<T> {
fun <T> a(t: T) {}
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
@JvmInline
value class A(private val i: Int?)
@@ -1,3 +1,5 @@
// IGNORE K2
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package test
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() = object : Runnable {
override fun run() { }
}
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() {
class Local {
inner class Inner {
@@ -1,3 +1,5 @@
// IGNORE K2
class A {
init {
class L<T> {