FIR: Unignore all blackbox tests on context receivers
This commit is contained in:
+1
-3
@@ -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
-3
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compiler/testData/codegen/box/extensionFunctions/contextReceivers/fromKEEP/decimateEveryEvenThird.kt
Vendored
+1
-3
@@ -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
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-3
@@ -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
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user