Override property calls super when its not abstract

This commit is contained in:
Valentin Kipyatkov
2014-12-18 17:15:14 +03:00
parent 5f2446d889
commit c882e902c3
4 changed files with 41 additions and 29 deletions
@@ -22,7 +22,7 @@ class C : Base<String, C, Unit>() {
}
override val method: (String?) -> String
get() = throw UnsupportedOperationException()
get() = super.method
override fun toString(): String {
return super.toString()
@@ -5,7 +5,7 @@ open class A() {
fun some() : A {
return object : A() {
override val method: () -> Unit?
get() = <selection><caret>throw UnsupportedOperationException()</selection>
get() = <selection><caret>super.method</selection>
}
}
@@ -7,7 +7,7 @@ class C : A() {
val constant = 42
// Some comment
override val bar: Int
get() = <selection><caret>throw UnsupportedOperationException()</selection>
get() = <selection><caret>super.bar</selection>
override fun equals(other: Any?): Boolean {
return super.equals(other)