Check specificity relation for generant types of the constraint system.

Otherwise we can't properly chose between 'dynamic' and generic type.
This commit is contained in:
Dmitry Petrov
2015-12-29 12:41:52 +03:00
parent c97294a066
commit 4b3290dd8c
4 changed files with 58 additions and 10 deletions
@@ -115,6 +115,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("dynamicVsGeneric.kt")
public void testDynamicVsGeneric() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/dynamicVsGeneric.kt");
doTest(fileName);
}
@TestMetadata("extensionVals.kt")
public void testExtensionVals() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/dynamicTypes/extensionVals.kt");