IR: check absence of extension receiver in isMethodOfAny
Otherwise extension methods named toString/equals/hashCode were generated incorrectly on JVM IR, which could result in AbstractMethodError at runtime. #KT-45963 Fixed
This commit is contained in:
+5
@@ -12095,6 +12095,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/kt865.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("memberExtensionEqualsHashCodeToStringInInterface.kt")
|
||||
public void testMemberExtensionEqualsHashCodeToStringInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/memberExtensionEqualsHashCodeToStringInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested2.kt")
|
||||
public void testNested2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/extensionFunctions/nested2.kt");
|
||||
|
||||
Reference in New Issue
Block a user