Provide migration of Any functions via super in abstract case

Related to KT-38078
This commit is contained in:
Mikhail Glukhikh
2022-01-11 13:29:31 +03:00
parent 390fa682b9
commit fdf336042b
12 changed files with 68 additions and 29 deletions
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: -ForbidSuperDelegationToAbstractFakeOverride
// !LANGUAGE: -ForbidSuperDelegationToAbstractFakeOverride -ForbidSuperDelegationToAbstractAnyMethod
interface Foo {
fun check(): String = "OK"
}
@@ -22,5 +21,5 @@ abstract class A {
interface I
class B : A(), I { // I is necessary here
override fun hashCode() = super.<!ABSTRACT_SUPER_CALL!>hashCode<!>()
override fun hashCode() = super.<!ABSTRACT_SUPER_CALL_WARNING!>hashCode<!>()
}