[K/JS] Add @ts-ignore for the case when there is a class with a private primary constructor (or excluded from export) which has an exported subclass ^Fixed KT-52563
This commit is contained in:
@@ -226,6 +226,7 @@ val generateTypeScriptJsExportOnFileTests = sequential(
|
||||
!it.path.endsWith("implicit-export") &&
|
||||
!it.path.endsWith("inheritance") &&
|
||||
!it.path.endsWith("strict-implicit-export") &&
|
||||
!it.path.endsWith("private-primary-constructor") &&
|
||||
!it.path.endsWith(exportFileDirPostfix)
|
||||
}
|
||||
.map { generateJsExportOnFileTestFor(it.name) }
|
||||
|
||||
Generated
+16
@@ -637,6 +637,22 @@ public class IrJsTypeScriptExportTestGenerated extends AbstractIrJsTypeScriptExp
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("js/js.translator/testData/typescript-export/private-primary-constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Private_primary_constructor {
|
||||
@Test
|
||||
public void testAllFilesPresentInPrivate_primary_constructor() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/private-primary-constructor"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("private-primary-constructor.kt")
|
||||
public void testPrivate_primary_constructor() throws Exception {
|
||||
runTest("js/js.translator/testData/typescript-export/private-primary-constructor/private-primary-constructor.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("js/js.translator/testData/typescript-export/properties")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user