New diagnostic error for ambiguous object expression type

This commit is contained in:
Mikhael Bogdanov
2013-02-18 18:31:40 +04:00
parent 1b2da6b558
commit 1662c5cb75
9 changed files with 395 additions and 19 deletions
@@ -1453,6 +1453,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/declarationChecks"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("ambiguousObjectExpressionType.kt")
public void testAmbiguousObjectExpressionType() throws Exception {
doTest("compiler/testData/diagnostics/tests/declarationChecks/ambiguousObjectExpressionType.kt");
}
@TestMetadata("ComponentFunctionReturnTypeMismatch.kt")
public void testComponentFunctionReturnTypeMismatch() throws Exception {
doTest("compiler/testData/diagnostics/tests/declarationChecks/ComponentFunctionReturnTypeMismatch.kt");
@@ -1548,6 +1553,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/declarationChecks/RedeclarationsInMultiDecl.kt");
}
@TestMetadata("unambiguousObjectExpressionType.kt")
public void testUnambiguousObjectExpressionType() throws Exception {
doTest("compiler/testData/diagnostics/tests/declarationChecks/unambiguousObjectExpressionType.kt");
}
@TestMetadata("valVarFunctionParameter.kt")
public void testValVarFunctionParameter() throws Exception {
doTest("compiler/testData/diagnostics/tests/declarationChecks/valVarFunctionParameter.kt");