Expand the possibilities of object's interpretation

It is possible to create object in interpreter even if its
receiver symbol came from function parameter instead of object's class.
#KT-48174 Fixed
This commit is contained in:
Ivan Kylchik
2021-08-10 17:32:56 +03:00
committed by TeamCityServer
parent 492b8acf93
commit 2f2e608502
6 changed files with 40 additions and 10 deletions
@@ -262,6 +262,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
}
@Test
@TestMetadata("objectConstValInAnnotationArgument.kt")
public void testObjectConstValInAnnotationArgument() throws Exception {
runTest("compiler/testData/codegen/box/annotations/objectConstValInAnnotationArgument.kt");
}
@Test
@TestMetadata("parameterAnnotationInDefaultImpls.kt")
public void testParameterAnnotationInDefaultImpls() throws Exception {