FIR: Unignore all blackbox tests on context receivers

This commit is contained in:
Denis.Zharkov
2022-03-17 13:28:35 +03:00
committed by teamcity
parent 41bc842b9d
commit 2a6700e5d5
30 changed files with 22 additions and 84 deletions
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
interface Canvas {
val suffix: String
@@ -21,4 +19,4 @@ object MyCanvas : Canvas {
override val suffix = ""
}
fun box() = with(MyCanvas) { Circle().draw() }
fun box() = with(MyCanvas) { Circle().draw() }
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
data class Pair<A, B>(val first: A, val second: B)
@@ -18,4 +16,4 @@ fun box(): String {
return with(comparator) {
Pair("OK", "fail").min
}
}
}
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_STDLIB
fun List<Int>.decimateEveryEvenThird() = sequence {
@@ -16,4 +14,4 @@ fun List<Int>.decimateEveryEvenThird() = sequence {
fun box() = with(listOf(0, 1, 2).decimateEveryEvenThird()) {
if (toList() == listOf(2)) "OK" else "fail"
}
}
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_STDLIB
class View {
@@ -17,4 +15,4 @@ fun box(): String {
}
return "fail"
}
}
}
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
class Param
class O {
@@ -16,4 +14,4 @@ fun <T> K.f(g: context(O) K.(Param) -> T) = g(this@O, this@K, Param())
fun box() = with(O()) {
K().f { o + k }
}
}
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_STDLIB
interface Semigroup<T> {
@@ -30,4 +28,4 @@ fun box(): String {
return with(StringMonoid) {
listOf("O", "K").sum()
}
}
}
@@ -1,7 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: context receivers aren't yet supported
// WITH_STDLIB
// WITH_COROUTINES
@@ -39,4 +37,4 @@ fun box(): String {
return with(MyCoroutineScope) {
simpleFlow().launchFlow()
}
}
}