Hack: do not add trivial constraints (t <: Any?) for constituent types,

otherwise nested calls handling logic in old inference wouldn't work for type alias constructors.
This commit is contained in:
Dmitry Petrov
2016-11-10 12:23:25 +03:00
parent 549ae59562
commit 37eedc3703
7 changed files with 114 additions and 1 deletions
@@ -21064,6 +21064,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt")
public void testTypeAliasConstructorTypeArgumentsInferenceWithNestedCalls2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithNestedCalls2.kt");
doTest(fileName);
}
@TestMetadata("typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt")
public void testTypeAliasConstructorTypeArgumentsInferenceWithPhantomTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/typeAliasConstructorTypeArgumentsInferenceWithPhantomTypes.kt");