Function literal is now expression and function simultaneously for purposes of annotation target checking

This commit is contained in:
Mikhail Glukhikh
2015-09-21 16:20:36 +03:00
parent 997e9a7dd7
commit dd4601fd08
6 changed files with 44 additions and 5 deletions
@@ -1034,6 +1034,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("functions.kt")
public void testFunctions() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/options/functions.kt");
doTest(fileName);
}
@TestMetadata("javaDocumented.kt")
public void testJavaDocumented() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/options/javaDocumented.kt");