KT-14196 Do not allow class literal with expression in annotation arguments

This commit is contained in:
Dmitry Petrov
2016-11-25 15:46:44 +03:00
parent 904ea33291
commit 5d1b848658
4 changed files with 100 additions and 1 deletions
@@ -2992,6 +2992,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("inAnnotationArguments.kt")
public void testInAnnotationArguments() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/classLiteral/inAnnotationArguments.kt");
doTest(fileName);
}
@TestMetadata("integerValueType.kt")
public void testIntegerValueType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/classLiteral/integerValueType.kt");