Fixed KT-4892 Override method generates redundant type arguments in call to super
#KT-4892 Fixed
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
open class A {
|
||||
open fun foo() {}
|
||||
}
|
||||
|
||||
trait B {
|
||||
fun bar()
|
||||
}
|
||||
|
||||
class C : A(), B {
|
||||
override fun bar() {
|
||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super<A>.equals(other)
|
||||
}
|
||||
|
||||
override fun foo() {
|
||||
super<A>.foo()
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super<A>.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return super<A>.toString()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user