[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, readWriteAndCompare: Boolean,
useK2: Boolean useK2: Boolean
) { ) {
if (useK2 && InTextDirectivesUtils.findStringWithPrefixes(file.readText(), "// IGNORE K2") != null) {
return
}
val main = StringBuilder() val main = StringBuilder()
val afterVisitors = StringBuilder() val afterVisitors = StringBuilder()
val afterNodes = StringBuilder() val afterNodes = StringBuilder()
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
import kotlin.reflect.KClass import kotlin.reflect.KClass
@Target(AnnotationTarget.TYPE) @Target(AnnotationTarget.TYPE)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE K2
// !LANGUAGE: +EnumEntries // !LANGUAGE: +EnumEntries
enum class MyEnum { enum class MyEnum {
@@ -1,3 +1,5 @@
// IGNORE K2
interface A interface A
interface B interface B
class Inv<T>(e: T) class Inv<T>(e: T)
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() { fun test() {
val f = {} val f = {}
val g = fun Unit.(s: IntArray?, t: Set<Double>): String { return "" } val g = fun Unit.(s: IntArray?, t: Set<Double>): String { return "" }
@@ -1,3 +1,5 @@
// IGNORE K2
import kotlin.reflect.KProperty import kotlin.reflect.KProperty
class Delegate<T>(val value: T? = null) { class Delegate<T>(val value: T? = null) {
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
interface A { interface A {
interface B { interface B {
interface C interface C
@@ -1,3 +1,4 @@
// IGNORE K2
// !LANGUAGE: +MultiPlatformProjects // !LANGUAGE: +MultiPlatformProjects
// !OPT_IN: kotlin.ExperimentalMultiplatform // !OPT_IN: kotlin.ExperimentalMultiplatform
// NO_READ_WRITE_COMPARE // NO_READ_WRITE_COMPARE
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
class SimpleClass<in A>(val p: Int = 42) { class SimpleClass<in A>(val p: Int = 42) {
constructor(s: Array<String?>?) : this(s?.size ?: 0) 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 internal inline fun <reified X : Any> topLevelFun(x: X) = X::class
var topLevelProp: String? = null var topLevelProp: String? = null
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
class A<T> { class A<T> {
fun <T> a(t: T) {} fun <T> a(t: T) {}
+2
View File
@@ -1,3 +1,5 @@
// IGNORE K2
@JvmInline @JvmInline
value class A(private val i: Int?) value class A(private val i: Int?)
@@ -1,3 +1,5 @@
// IGNORE K2
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package test package test
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() = object : Runnable { fun test() = object : Runnable {
override fun run() { } override fun run() { }
} }
@@ -1,3 +1,5 @@
// IGNORE K2
fun test() { fun test() {
class Local { class Local {
inner class Inner { inner class Inner {
@@ -1,3 +1,5 @@
// IGNORE K2
class A { class A {
init { init {
class L<T> { class L<T> {