[K/JS] Make interface subtyping faster and lighter.

This commit is contained in:
Artem Kobzar
2022-09-19 10:26:11 +00:00
committed by Space
parent 03f83ff339
commit a368fc37c7
22 changed files with 572 additions and 287 deletions
@@ -3811,6 +3811,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/typeCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("complexIsInterface.kt")
public void testComplexIsInterface() throws Exception {
runTest("js/js.translator/testData/box/expression/typeCheck/complexIsInterface.kt");
}
@Test
@TestMetadata("simpleAsClass.kt")
public void testSimpleAsClass() throws Exception {
@@ -4265,6 +4265,12 @@ public class FirJsTestGenerated extends AbstractFirJsTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/typeCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("complexIsInterface.kt")
public void testComplexIsInterface() throws Exception {
runTest("js/js.translator/testData/box/expression/typeCheck/complexIsInterface.kt");
}
@Test
@TestMetadata("simpleAsClass.kt")
public void testSimpleAsClass() throws Exception {
@@ -4265,6 +4265,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/typeCheck"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("complexIsInterface.kt")
public void testComplexIsInterface() throws Exception {
runTest("js/js.translator/testData/box/expression/typeCheck/complexIsInterface.kt");
}
@Test
@TestMetadata("simpleAsClass.kt")
public void testSimpleAsClass() throws Exception {