Annotations on type aliases: typealias is not a "default target".

Add diagnostic test for annotations on type aliases.
This commit is contained in:
Dmitry Petrov
2016-10-10 16:02:17 +03:00
parent 344bb03e8c
commit d2d8f72ffc
13 changed files with 62 additions and 10 deletions
@@ -20520,6 +20520,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/typealias"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("annotationsOnTypeAliases.kt")
public void testAnnotationsOnTypeAliases() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/annotationsOnTypeAliases.kt");
doTest(fileName);
}
@TestMetadata("boundViolationInTypeAliasConstructor.kt")
public void testBoundViolationInTypeAliasConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/boundViolationInTypeAliasConstructor.kt");