7e9e427d4c
- 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
10 lines
190 B
Kotlin
Vendored
10 lines
190 B
Kotlin
Vendored
abstract class SuperTrait {
|
|
override fun toString(): String = "!"
|
|
}
|
|
|
|
data class A(val x: Int): SuperTrait() {
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (A(0).toString() == "!") "OK" else "fail"
|
|
} |