KT-2841 Can't infer a type for function literal parameter if the return type is error
#KT-2841 fixed
This commit is contained in:
@@ -13,16 +13,18 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.jet.checkers;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.test.InnerTestClasses;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import java.io.File;
|
||||
import org.jetbrains.jet.checkers.AbstractDiagnosticsTestWithEagerResolve;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.checkers.AbstractDiagnosticsTestWithEagerResolve}. DO NOT MODIFY MANUALLY */
|
||||
@InnerTestClasses({JetDiagnosticsTestGenerated.Tests.class, JetDiagnosticsTestGenerated.Script.class})
|
||||
@@ -1889,6 +1891,26 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2514.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2841.kt")
|
||||
public void testKt2841() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2841.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2841_it.kt")
|
||||
public void testKt2841_it() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2841_it.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2841_it_this.kt")
|
||||
public void testKt2841_it_this() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2841_it_this.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2841_this.kt")
|
||||
public void testKt2841_this() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2841_this.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2842.kt")
|
||||
public void testKt2842() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt2842.kt");
|
||||
|
||||
Reference in New Issue
Block a user