[Wasm] Diagnostic test: dynamic type is unsupported

Validates the fix for KT-56711
This commit is contained in:
Svyatoslav Kuzmich
2023-02-16 15:57:06 +01:00
committed by Space Team
parent c9e71985da
commit 83ba1ac0f7
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,8 @@
val foo: <!UNSUPPORTED!>dynamic<!> = 1
fun foo(x: <!UNSUPPORTED!>dynamic<!>): <!UNSUPPORTED!>dynamic<!> {
class C {
val foo: <!UNSUPPORTED!>dynamic<!> = 1
}
return x + C().foo
}
@@ -33,6 +33,12 @@ public class DiagnosticsWasmTestGenerated extends AbstractDiagnosticsWasmTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/wasmTests/jsInterop"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("dynamicUnsupported.kt")
public void testDynamicUnsupported() throws Exception {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/dynamicUnsupported.kt");
}
@Test
@TestMetadata("inheritance.kt")
public void testInheritance() throws Exception {