KT-310: Tell the user when something is a property and not a function.
#KT-310 Fixed
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user