UNUSED_TYPEALIAS_PARAMETER: special diagnostic for typealias parameters

explicitly telling that such type parameters are not used in type checking.
Move typealias-related utility functions on types to TypeUtils.kt.
This commit is contained in:
Dmitry Petrov
2016-06-10 11:53:45 +03:00
parent 40dd36bcf6
commit 115f40d371
14 changed files with 72 additions and 38 deletions
@@ -19647,6 +19647,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("unusedTypeAliasParameter.kt")
public void testUnusedTypeAliasParameter() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/unusedTypeAliasParameter.kt");
doTest(fileName);
}
@TestMetadata("wrongNumberOfArgumentsInTypeAliasConstructor.kt")
public void testWrongNumberOfArgumentsInTypeAliasConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/wrongNumberOfArgumentsInTypeAliasConstructor.kt");