Fix assertion caused by wrong equality of DescriptorBasedFunctionHandleForJvm

In case of the same class defined in different modules they contain
different descriptors instances in their scope that might lead
to failing assertion in findConcreteSuperDeclaration
because there are overridden from different modules

It might happen even in the compiler because of different built-in modules
defined for sources-module and for dependencies' one

^KT-29320 Fixed
This commit is contained in:
Denis Zharkov
2019-01-22 09:48:34 +03:00
parent 168d2d8cce
commit efdb4e1d5d
5 changed files with 47 additions and 0 deletions
@@ -13899,6 +13899,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/jvm8/simpleProperty.kt");
}
@TestMetadata("treeMapBridge.kt")
public void testTreeMapBridge() throws Exception {
runTest("compiler/testData/codegen/box/jvm8/treeMapBridge.kt");
}
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)