Override property calls super when its not abstract
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user