[JS FIR] Fix the JsExport diagnostic for nullable primitive types

- Correctly handle nullable primitive types.
- Unsigned primitive arrays are not exportable.

^KT-64366 Fixed
This commit is contained in:
Alexander Korepanov
2023-12-18 13:00:30 +01:00
committed by Space Team
parent c4fc0b919d
commit 89e2af2047
5 changed files with 121 additions and 2 deletions
@@ -486,6 +486,12 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/nonConsumableIdentifiersInExportedFile.kt");
}
@Test
@TestMetadata("primitiveNullableTypes.kt")
public void testPrimitiveNullableTypes() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/primitiveNullableTypes.kt");
}
@Test
@TestMetadata("secondaryConstructorWithoutJsName.kt")
public void testSecondaryConstructorWithoutJsName() throws Exception {
@@ -486,6 +486,12 @@ public class DiagnosticsWithJsStdLibTestGenerated extends AbstractDiagnosticsTes
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/nonConsumableIdentifiersInExportedFile.kt");
}
@Test
@TestMetadata("primitiveNullableTypes.kt")
public void testPrimitiveNullableTypes() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/primitiveNullableTypes.kt");
}
@Test
@TestMetadata("secondaryConstructorWithoutJsName.kt")
public void testSecondaryConstructorWithoutJsName() throws Exception {