KT-59504 [FIR] Check _ on destructuring declarations

Previously the checker was ignoring them, leading to missing diagnostics

^KT-59504 Fixed
This commit is contained in:
Alejandro Serrano Mena
2023-09-21 11:27:32 +02:00
committed by Space Team
parent 59129501cb
commit b1551c67e0
12 changed files with 77 additions and 5 deletions
@@ -9191,6 +9191,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.kt");
}
@Test
@TestMetadata("missingComponentN.kt")
public void testMissingComponentN() throws Exception {
runTest("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/missingComponentN.kt");
}
@Test
@TestMetadata("RedeclarationInForLoop.kt")
public void testRedeclarationInForLoop() throws Exception {
@@ -9191,6 +9191,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/lastDestructuringDeclarationInBlock.kt");
}
@Test
@TestMetadata("missingComponentN.kt")
public void testMissingComponentN() throws Exception {
runTest("compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/missingComponentN.kt");
}
@Test
@TestMetadata("RedeclarationInForLoop.kt")
public void testRedeclarationInForLoop() throws Exception {