Report error when free function is called as extension

This commit is contained in:
Alexander Udalov
2015-05-25 20:10:46 +03:00
parent 14c2690447
commit ea6d0b464d
11 changed files with 53 additions and 2 deletions
@@ -223,6 +223,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("FreeFunctionCalledAsExtension.kt")
public void testFreeFunctionCalledAsExtension() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/FreeFunctionCalledAsExtension.kt");
doTest(fileName);
}
@TestMetadata("FunctionCalleeExpressions.kt")
public void testFunctionCalleeExpressions() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/FunctionCalleeExpressions.kt");