[Wasm] Diagnostic test: dynamic type is unsupported
Validates the fix for KT-56711
This commit is contained in:
committed by
Space Team
parent
c9e71985da
commit
83ba1ac0f7
@@ -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
|
||||||
|
}
|
||||||
+6
@@ -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);
|
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
|
@Test
|
||||||
@TestMetadata("inheritance.kt")
|
@TestMetadata("inheritance.kt")
|
||||||
public void testInheritance() throws Exception {
|
public void testInheritance() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user