[NI] Add required FactoryPattern annotation for factory pattern resolve

#KT-11265
This commit is contained in:
Dmitriy Novozhilov
2020-04-22 14:34:42 +03:00
parent 865ddac07a
commit 8c524769b1
13 changed files with 182 additions and 7 deletions
@@ -2824,6 +2824,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
public void testOverloadByLambdaReturnType_enabled() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/factoryPattern/overloadByLambdaReturnType_enabled.kt");
}
@TestMetadata("overloadByLambdaReturnType_enabled_no_annotation.kt")
public void testOverloadByLambdaReturnType_enabled_no_annotation() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/factoryPattern/overloadByLambdaReturnType_enabled_no_annotation.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/forInArrayLoop")
@@ -2824,6 +2824,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
public void testOverloadByLambdaReturnType_enabled() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/factoryPattern/overloadByLambdaReturnType_enabled.kt");
}
@TestMetadata("overloadByLambdaReturnType_enabled_no_annotation.kt")
public void testOverloadByLambdaReturnType_enabled_no_annotation() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/factoryPattern/overloadByLambdaReturnType_enabled_no_annotation.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/forInArrayLoop")