Relax name shadowing warning on parameter names

#KT-17611 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-06-29 19:22:17 +03:00
parent daa8521729
commit f5cd8c7e4d
10 changed files with 77 additions and 20 deletions
@@ -19402,6 +19402,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/shadowing"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("noNameShadowingForSimpleParameters.kt")
public void testNoNameShadowingForSimpleParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/shadowing/noNameShadowingForSimpleParameters.kt");
doTest(fileName);
}
@TestMetadata("ShadowLambdaParameter.kt")
public void testShadowLambdaParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/shadowing/ShadowLambdaParameter.kt");