Test: arguments of type aliases should be substituted literally,

without type approximation.
TYPE_MISMATCH is an expected error.
This commit is contained in:
Dmitry Petrov
2016-06-10 12:17:53 +03:00
parent 7da50069eb
commit 1efbd34529
3 changed files with 18 additions and 0 deletions
@@ -19563,6 +19563,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("noApproximationInTypeAliasArgumentSubstitution.kt")
public void testNoApproximationInTypeAliasArgumentSubstitution() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/noApproximationInTypeAliasArgumentSubstitution.kt");
doTest(fileName);
}
@TestMetadata("noRHS.kt")
public void testNoRHS() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/typealias/noRHS.kt");