KT-16553 Underscore variable values shall not be evaluated

Do not generate 'componentN' calls for '_' in destructuring assignment.
This commit is contained in:
Dmitry Petrov
2017-02-28 17:55:48 +03:00
parent 63b16e14d8
commit dd61a5b2c6
4 changed files with 57 additions and 0 deletions
@@ -482,6 +482,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
doTest(fileName);
}
@TestMetadata("destructuringWithUnderscore.kt")
public void testDestructuringWithUnderscore() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/destructuringWithUnderscore.kt");
doTest(fileName);
}
@TestMetadata("dotQualified.kt")
public void testDotQualified() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/dotQualified.kt");