[K2] Ignore failing metadata tests while working on them.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE K2
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE K2
|
||||
// !LANGUAGE: +EnumEntries
|
||||
|
||||
enum class MyEnum {
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE K2
|
||||
|
||||
interface A
|
||||
interface B
|
||||
class Inv<T>(e: T)
|
||||
|
||||
+2
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE K2
|
||||
|
||||
class SimpleClass<in A>(val p: Int = 42) {
|
||||
constructor(s: Array<String?>?) : this(s?.size ?: 0)
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE K2
|
||||
|
||||
internal inline fun <reified X : Any> topLevelFun(x: X) = X::class
|
||||
|
||||
var topLevelProp: String? = null
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IGNORE K2
|
||||
|
||||
class A<T> {
|
||||
fun <T> a(t: T) {}
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user