[FIR JS] Reproduce KT-64548

Running the FIR tests leads to the
crash.

^KT-64548
This commit is contained in:
Nikolay Lunyak
2024-01-08 14:37:42 +02:00
committed by Space Team
parent e60a436068
commit 9a598026c8
5 changed files with 36 additions and 0 deletions
@@ -10824,6 +10824,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
runTest("js/js.translator/testData/box/simple/elseif.kt");
}
@Test
@TestMetadata("errorCodeDelegatedConstructorCall.kt")
public void testErrorCodeDelegatedConstructorCall() throws Exception {
runTest("js/js.translator/testData/box/simple/errorCodeDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
@@ -10930,6 +10930,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/simple/elseif.kt");
}
@Test
@TestMetadata("errorCodeDelegatedConstructorCall.kt")
public void testErrorCodeDelegatedConstructorCall() throws Exception {
runTest("js/js.translator/testData/box/simple/errorCodeDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
@@ -10930,6 +10930,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/simple/elseif.kt");
}
@Test
@TestMetadata("errorCodeDelegatedConstructorCall.kt")
public void testErrorCodeDelegatedConstructorCall() throws Exception {
runTest("js/js.translator/testData/box/simple/errorCodeDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
@@ -10824,6 +10824,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/simple/elseif.kt");
}
@Test
@TestMetadata("errorCodeDelegatedConstructorCall.kt")
public void testErrorCodeDelegatedConstructorCall() throws Exception {
runTest("js/js.translator/testData/box/simple/errorCodeDelegatedConstructorCall.kt");
}
@Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
@@ -0,0 +1,12 @@
// ISSUE: KT-64548
open external class Light {
constructor(hex: Number = definedExternally, intensity: Number = definedExternally)
constructor(hex: String = definedExternally, intensity: Number = definedExternally)
}
open external class HemisphereLight : Light {
constructor(intensity: Number = definedExternally)
}
fun box() = "OK"