diff --git a/compiler/testData/diagnostics/tests/kt310.kt b/compiler/testData/diagnostics/tests/kt310.kt new file mode 100644 index 00000000000..fed6efafaad --- /dev/null +++ b/compiler/testData/diagnostics/tests/kt310.kt @@ -0,0 +1,3 @@ +fun f(c: Array): Int { + return c.size() +} diff --git a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java index a0279cbe40d..2afddc92f0e 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -265,6 +265,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage doTest("compiler/testData/diagnostics/tests/IsExpressions.kt"); } + @TestMetadata("kt310.kt") + public void testKt310() throws Exception { + doTest("compiler/testData/diagnostics/tests/kt310.kt"); + } + @TestMetadata("LValueAssignment.kt") public void testLValueAssignment() throws Exception { doTest("compiler/testData/diagnostics/tests/LValueAssignment.kt");