Fix outer class accesses inside suspendImpl functions
We need to generate this$0 fields to get to the outer class and generate accesses to these fields inside suspendImpl function. #KT-46214 Fixed
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -6879,6 +6879,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideInInnerClass.kt")
|
||||
public void testOverrideInInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallOnTwoReceivers.kt")
|
||||
public void testSafeCallOnTwoReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt");
|
||||
|
||||
Generated
+5
@@ -6290,6 +6290,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideInInnerClass.kt")
|
||||
public void testOverrideInInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallOnTwoReceivers.kt")
|
||||
public void testSafeCallOnTwoReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt");
|
||||
|
||||
Generated
+5
@@ -6290,6 +6290,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overrideInInnerClass.kt")
|
||||
public void testOverrideInInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/overrideInInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("safeCallOnTwoReceivers.kt")
|
||||
public void testSafeCallOnTwoReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/safeCallOnTwoReceivers.kt");
|
||||
|
||||
Reference in New Issue
Block a user