Check for the presence of dispatch receiver too in isEqualsDescriptor()

Otherwise, top-level function with the name 'equals' and suitable
signature will be (erroneously) treated as true 'equals' invocation,
leading to further exception (see EA-126602)
This commit is contained in:
Dmitry Savvinov
2018-10-12 18:11:14 +03:00
parent 28e43b0487
commit 99e1d4ab45
5 changed files with 30 additions and 1 deletions
@@ -14501,6 +14501,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/override/ExtendFunctionClass.kt");
}
@TestMetadata("fakeEquals.kt")
public void testFakeEquals() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/fakeEquals.kt");
}
@TestMetadata("FakeOverrideAbstractAndNonAbstractFun.kt")
public void testFakeOverrideAbstractAndNonAbstractFun() throws Exception {
runTest("compiler/testData/diagnostics/tests/override/FakeOverrideAbstractAndNonAbstractFun.kt");