JS: prohibit passing native interfaces to reified type parameters

This commit is contained in:
Alexey Andreev
2016-09-30 14:54:50 +03:00
parent acf7fcaebf
commit 2eb54f234c
10 changed files with 124 additions and 1 deletions
@@ -739,6 +739,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("nativeInterfaceAsReifiedTypeArgument.kt")
public void testNativeInterfaceAsReifiedTypeArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/nativeInterfaceAsReifiedTypeArgument.kt");
doTest(fileName);
}
@TestMetadata("whenIsNativeInterface.kt")
public void testWhenIsNativeInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/rtti/whenIsNativeInterface.kt");