[K/JS] Add ingored test for KT-60785 fix until the rr/vgrechko/accidental-reification-2 will be merged
This commit is contained in:
+6
@@ -872,6 +872,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("boxingUnboxingInsideTheSuspendFunction.kt")
|
||||||
|
public void testBoxingUnboxingInsideTheSuspendFunction() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/coroutines/boxingUnboxingInsideTheSuspendFunction.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("debugStatement.kt")
|
@TestMetadata("debugStatement.kt")
|
||||||
public void testDebugStatement() throws Exception {
|
public void testDebugStatement() throws Exception {
|
||||||
|
|||||||
+6
@@ -872,6 +872,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("boxingUnboxingInsideTheSuspendFunction.kt")
|
||||||
|
public void testBoxingUnboxingInsideTheSuspendFunction() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/coroutines/boxingUnboxingInsideTheSuspendFunction.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("debugStatement.kt")
|
@TestMetadata("debugStatement.kt")
|
||||||
public void testDebugStatement() throws Exception {
|
public void testDebugStatement() throws Exception {
|
||||||
|
|||||||
+6
@@ -872,6 +872,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("boxingUnboxingInsideTheSuspendFunction.kt")
|
||||||
|
public void testBoxingUnboxingInsideTheSuspendFunction() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/coroutines/boxingUnboxingInsideTheSuspendFunction.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("debugStatement.kt")
|
@TestMetadata("debugStatement.kt")
|
||||||
public void testDebugStatement() throws Exception {
|
public void testDebugStatement() throws Exception {
|
||||||
|
|||||||
+6
@@ -872,6 +872,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/coroutines"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("boxingUnboxingInsideTheSuspendFunction.kt")
|
||||||
|
public void testBoxingUnboxingInsideTheSuspendFunction() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/coroutines/boxingUnboxingInsideTheSuspendFunction.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("debugStatement.kt")
|
@TestMetadata("debugStatement.kt")
|
||||||
public void testDebugStatement() throws Exception {
|
public void testDebugStatement() throws Exception {
|
||||||
|
|||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
// WITH_STDLIB
|
||||||
|
// EXPECTED_REACHABLE_NODES: 1292
|
||||||
|
// KT-60785
|
||||||
|
// Ignored until the rr/vgrechko/accidental-reification-2 will be merged
|
||||||
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||||
|
|
||||||
|
import kotlin.coroutines.*
|
||||||
|
import kotlin.coroutines.intrinsics.*
|
||||||
|
|
||||||
|
value class SomeValue(val a: String) {
|
||||||
|
override fun toString() = when (a) {
|
||||||
|
"fa" -> "O"
|
||||||
|
"il" -> "K"
|
||||||
|
else -> ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
suspend fun foo() = mapOf(SomeValue("fa") to SomeValue("il"))
|
||||||
|
|
||||||
|
fun builder(c: suspend () -> Unit) {
|
||||||
|
c.startCoroutine(object : Continuation<Unit> {
|
||||||
|
override val context = EmptyCoroutineContext
|
||||||
|
override fun resumeWith(result: Result<Unit>) {}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
var result = ""
|
||||||
|
|
||||||
|
builder {
|
||||||
|
for ((k, v) in foo()) {
|
||||||
|
result += "$k$v"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user