Forbid calls of Any functions via super if they are overridden as abstract

#KT-38078 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-01-10 16:04:14 +03:00
parent b689bbf5c7
commit 390fa682b9
4 changed files with 39 additions and 41 deletions
@@ -22,5 +22,5 @@ abstract class A {
interface I
class B : A(), I { // I is necessary here
override fun hashCode() = super.hashCode()
override fun hashCode() = super.<!ABSTRACT_SUPER_CALL!>hashCode<!>()
}
@@ -22,5 +22,5 @@ abstract class A {
interface I
class B : A(), I { // I is necessary here
override fun hashCode() = super.hashCode()
override fun hashCode() = super.<!ABSTRACT_SUPER_CALL!>hashCode<!>()
}