Inference for type alias constructor type arguments: better error reporting.

This commit is contained in:
Dmitry Petrov
2016-11-09 16:32:19 +03:00
parent 94d7bd7a6b
commit 549ae59562
10 changed files with 123 additions and 40 deletions
@@ -21058,6 +21058,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt")
public void testTypeAliasConstructorTypeArgumentsInferenceWithNestedCalls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls.kt");
doTest(fileName);
}
@TestMetadata("typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt")
public void testTypeAliasConstructorTypeArgumentsInferenceWithPhantomTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt");
doTest(fileName);
}
@TestMetadata("typeAliasConstructorWrongClass.kt")
public void testTypeAliasConstructorWrongClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorWrongClass.kt");