Treat any coroutine as it has non-const closure

Because it's always does capture controller
This commit is contained in:
Denis Zharkov
2016-07-04 15:32:54 +03:00
parent df4bf61378
commit d657bc8110
8 changed files with 83 additions and 2 deletions
@@ -113,6 +113,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("constCoroutine.kt")
public void testConstCoroutine() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/constCoroutine.kt");
doTest(fileName);
}
@TestMetadata("falseSmartCast.kt")
public void testFalseSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/falseSmartCast.kt");