Introduce warning about forbidden referencing to underscore named parameter of the catch block in a future release (KT-31567)
This commit is contained in:
@@ -19209,6 +19209,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/typeParameterInDefaultValueInLocalFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreInCatchBlock.kt")
|
||||
public void testUnderscoreInCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/underscoreInCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreInCatchBlockWithEnabledFeature.kt")
|
||||
public void testUnderscoreInCatchBlockWithEnabledFeature() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/underscoreInCatchBlockWithEnabledFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongNumberOfTypeArguments.kt")
|
||||
public void testWrongNumberOfTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt");
|
||||
|
||||
Generated
+10
@@ -19199,6 +19199,16 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/typeParameterInDefaultValueInLocalFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreInCatchBlock.kt")
|
||||
public void testUnderscoreInCatchBlock() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/underscoreInCatchBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreInCatchBlockWithEnabledFeature.kt")
|
||||
public void testUnderscoreInCatchBlockWithEnabledFeature() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/underscoreInCatchBlockWithEnabledFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongNumberOfTypeArguments.kt")
|
||||
public void testWrongNumberOfTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/wrongNumberOfTypeArguments.kt");
|
||||
|
||||
Reference in New Issue
Block a user