Type inference SHOULD NOT work for type alias constructor in supertypes list

(same as for classes: type arguments should be provided explicitly).
This commit is contained in:
Dmitry Petrov
2016-11-14 14:31:18 +03:00
parent cd8b5dcb00
commit f7203da2d6
3 changed files with 38 additions and 0 deletions
@@ -21154,6 +21154,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("typeAliasConstructorInferenceInSupertypesList.kt")
public void testTypeAliasConstructorInferenceInSupertypesList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorInferenceInSupertypesList.kt");
doTest(fileName);
}
@TestMetadata("typeAliasConstructorTypeArgumentsInference.kt")
public void testTypeAliasConstructorTypeArgumentsInference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInference.kt");