KT-310: Tell the user when something is a property and not a function.

#KT-310 Fixed
This commit is contained in:
Pavel V. Talanov
2012-07-25 13:59:09 +04:00
parent 84217393f6
commit fd78340897
2 changed files with 8 additions and 0 deletions
@@ -0,0 +1,3 @@
fun f(c: Array<Int>): Int {
return c.<!FUNCTION_EXPECTED!>size<!>()
}
@@ -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");