[K/JS] fix(KT-53569): skip double traversing for nested annotation classes.
This commit is contained in:
@@ -39,6 +39,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
||||
public void testAnnotationClass() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/annotationClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleEqualMethodsBug.kt")
|
||||
public void testMultipleEqualMethodsBug() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/multipleEqualMethodsBug.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -39,6 +39,12 @@ public class FirJsTestGenerated extends AbstractFirJsTest {
|
||||
public void testAnnotationClass() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/annotationClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleEqualMethodsBug.kt")
|
||||
public void testMultipleEqualMethodsBug() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/multipleEqualMethodsBug.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -39,6 +39,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
public void testAnnotationClass() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/annotationClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleEqualMethodsBug.kt")
|
||||
public void testMultipleEqualMethodsBug() throws Exception {
|
||||
runTest("js/js.translator/testData/box/annotation/multipleEqualMethodsBug.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// EXPECTED_REACHABLE_NODES: 1280
|
||||
package foo
|
||||
|
||||
annotation class Parent {
|
||||
annotation class Child
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (Parent.Child() == Parent.Child()) "OK" else "FAIL"
|
||||
}
|
||||
Reference in New Issue
Block a user