[K/JS] Remove super keyword insertion if the body of method was moved into another place (private methods, lambdas, coroutines) ^KT-57990 Fixed
This commit is contained in:
@@ -620,6 +620,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/closure/recursiveFunctionWithSameNameDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInsideLambda.kt")
|
||||
public void testSuperCallInsideLambda() throws Exception {
|
||||
runTest("js/js.translator/testData/box/closure/superCallInsideLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withManyClosuresInNestedFunctionsAndObjects.kt")
|
||||
public void testWithManyClosuresInNestedFunctionsAndObjects() throws Exception {
|
||||
@@ -867,6 +873,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
public void testSuspendFunctionalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendFunctionalInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendMethodWithSuperCall.kt")
|
||||
public void testSuspendMethodWithSuperCall() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendMethodWithSuperCall.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -9816,6 +9828,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/superCall/propertySuperAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInPrivateMethod.kt")
|
||||
public void testSuperCallInPrivateMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/superCall/superCallInPrivateMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitSuperCall.kt")
|
||||
public void testTraitSuperCall() throws Exception {
|
||||
|
||||
+18
@@ -620,6 +620,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
runTest("js/js.translator/testData/box/closure/recursiveFunctionWithSameNameDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInsideLambda.kt")
|
||||
public void testSuperCallInsideLambda() throws Exception {
|
||||
runTest("js/js.translator/testData/box/closure/superCallInsideLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withManyClosuresInNestedFunctionsAndObjects.kt")
|
||||
public void testWithManyClosuresInNestedFunctionsAndObjects() throws Exception {
|
||||
@@ -931,6 +937,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
public void testSuspendFunctionalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendFunctionalInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendMethodWithSuperCall.kt")
|
||||
public void testSuspendMethodWithSuperCall() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendMethodWithSuperCall.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -10726,6 +10738,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
runTest("js/js.translator/testData/box/superCall/propertySuperAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInPrivateMethod.kt")
|
||||
public void testSuperCallInPrivateMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/superCall/superCallInPrivateMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitSuperCall.kt")
|
||||
public void testTraitSuperCall() throws Exception {
|
||||
|
||||
+18
@@ -620,6 +620,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/closure/recursiveFunctionWithSameNameDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInsideLambda.kt")
|
||||
public void testSuperCallInsideLambda() throws Exception {
|
||||
runTest("js/js.translator/testData/box/closure/superCallInsideLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withManyClosuresInNestedFunctionsAndObjects.kt")
|
||||
public void testWithManyClosuresInNestedFunctionsAndObjects() throws Exception {
|
||||
@@ -931,6 +937,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
public void testSuspendFunctionalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendFunctionalInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendMethodWithSuperCall.kt")
|
||||
public void testSuspendMethodWithSuperCall() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendMethodWithSuperCall.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -10832,6 +10844,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/superCall/propertySuperAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInPrivateMethod.kt")
|
||||
public void testSuperCallInPrivateMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/superCall/superCallInPrivateMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitSuperCall.kt")
|
||||
public void testTraitSuperCall() throws Exception {
|
||||
|
||||
+18
@@ -620,6 +620,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/closure/recursiveFunctionWithSameNameDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInsideLambda.kt")
|
||||
public void testSuperCallInsideLambda() throws Exception {
|
||||
runTest("js/js.translator/testData/box/closure/superCallInsideLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withManyClosuresInNestedFunctionsAndObjects.kt")
|
||||
public void testWithManyClosuresInNestedFunctionsAndObjects() throws Exception {
|
||||
@@ -931,6 +937,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
public void testSuspendFunctionalInterface() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendFunctionalInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendMethodWithSuperCall.kt")
|
||||
public void testSuspendMethodWithSuperCall() throws Exception {
|
||||
runTest("js/js.translator/testData/box/coroutines/suspendMethodWithSuperCall.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -10726,6 +10738,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/superCall/propertySuperAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallInPrivateMethod.kt")
|
||||
public void testSuperCallInPrivateMethod() throws Exception {
|
||||
runTest("js/js.translator/testData/box/superCall/superCallInPrivateMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("traitSuperCall.kt")
|
||||
public void testTraitSuperCall() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user