Replace explicit parameter with it: don't suggest if overload resolution ambiguity error occurs
#KT-20795 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
69a2697598
commit
5b927d798c
@@ -14634,11 +14634,21 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/applicable_formatsProperly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("applicable_inPropertyInitializer.kt")
|
||||
public void testApplicable_inPropertyInitializer() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/applicable_inPropertyInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("applicable_nestedLiteralsNoUseInside.kt")
|
||||
public void testApplicable_nestedLiteralsNoUseInside() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/applicable_nestedLiteralsNoUseInside.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("applicable_qualifiedExpression.kt")
|
||||
public void testApplicable_qualifiedExpression() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/applicable_qualifiedExpression.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notApplicable_alreadyUsesImplicitIt.kt")
|
||||
public void testNotApplicable_alreadyUsesImplicitIt() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_alreadyUsesImplicitIt.kt");
|
||||
@@ -14674,6 +14684,16 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_notFunctionLiteralParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notApplicable_overloadResolutionAmbiguity.kt")
|
||||
public void testNotApplicable_overloadResolutionAmbiguity() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_overloadResolutionAmbiguity.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notApplicable_overloadResolutionAmbiguity2.kt")
|
||||
public void testNotApplicable_overloadResolutionAmbiguity2() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_overloadResolutionAmbiguity2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notApplicable_parameterHasExplicitType.kt")
|
||||
public void testNotApplicable_parameterHasExplicitType() throws Exception {
|
||||
runTest("idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_parameterHasExplicitType.kt");
|
||||
|
||||
Reference in New Issue
Block a user