Files
kotlin/compiler/testData/diagnostics/tests/java8Overrides/hidingMethodOfAny.kt
Dmitry Petrov 7e9e427d4c Java 8 rules for method overrides:
- report errors on implementing methods of Any in interfaces
- update testData

~~~

Java 8 override restrictions: interface can't implement a method of 'Any'
- update compiler sources
2015-10-12 14:12:31 +03:00

5 lines
125 B
Kotlin
Vendored

interface IA {
<!VIRTUAL_MEMBER_HIDDEN!>fun toString(): String<!> = "IB"
override fun equals(other: Any?): Boolean
}