[K2] Ignore failing metadata tests while working on them.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// IGNORE K2
|
||||||
|
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
@Target(AnnotationTarget.TYPE)
|
@Target(AnnotationTarget.TYPE)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// IGNORE K2
|
||||||
// !LANGUAGE: +EnumEntries
|
// !LANGUAGE: +EnumEntries
|
||||||
|
|
||||||
enum class MyEnum {
|
enum class MyEnum {
|
||||||
|
|||||||
+2
@@ -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
@@ -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) {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// IGNORE K2
|
||||||
|
|
||||||
class A<T> {
|
class A<T> {
|
||||||
fun <T> a(t: T) {}
|
fun <T> a(t: T) {}
|
||||||
|
|
||||||
|
|||||||
@@ -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> {
|
||||||
|
|||||||
Reference in New Issue
Block a user