KT-37448 'this' in delegating constructor call may refer to outer object
This commit is contained in:
+5
@@ -17995,6 +17995,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/objects/thisInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt")
|
||||
public void testThisRefToObjectInNestedClassConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/thisRefToObjectInNestedClassConstructorCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useAnonymousObjectAsIterator.kt")
|
||||
public void testUseAnonymousObjectAsIterator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/useAnonymousObjectAsIterator.kt");
|
||||
|
||||
+5
@@ -17995,6 +17995,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/objects/thisInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt")
|
||||
public void testThisRefToObjectInNestedClassConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/thisRefToObjectInNestedClassConstructorCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useAnonymousObjectAsIterator.kt")
|
||||
public void testUseAnonymousObjectAsIterator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/useAnonymousObjectAsIterator.kt");
|
||||
|
||||
+5
@@ -16850,6 +16850,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/objects/thisInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt")
|
||||
public void testThisRefToObjectInNestedClassConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/thisRefToObjectInNestedClassConstructorCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useAnonymousObjectAsIterator.kt")
|
||||
public void testUseAnonymousObjectAsIterator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/objects/useAnonymousObjectAsIterator.kt");
|
||||
|
||||
@@ -1246,6 +1246,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
|
||||
runTest("compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisRefToObjectInNestedClassConstructorCall.kt")
|
||||
public void testThisRefToObjectInNestedClassConstructorCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisReferenceBeforeClassDeclared.kt")
|
||||
public void testThisReferenceBeforeClassDeclared() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.kt");
|
||||
|
||||
Reference in New Issue
Block a user