Do not generate the field for unused parameters in suspend lambdas

This commit is contained in:
Iaroslav Postovalov
2020-12-09 22:43:06 +07:00
committed by Ilmir Usmanov
parent f49cf2d5ca
commit 6f34f00c61
6 changed files with 45 additions and 4 deletions
@@ -1515,6 +1515,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/simple.kt");
}
@TestMetadata("unusedParamNotSpill.kt")
public void testUnusedParamNotSpill() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/unusedParamNotSpill.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/when.kt");