Rename: add test for overridden method renaming in generic class
#KT-26047 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
ff76ba52d8
commit
cb1c0344b8
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
open class A<T> {
|
||||
open fun bar() {
|
||||
}
|
||||
}
|
||||
|
||||
class B<T> : A<T>() {
|
||||
override fun bar() {
|
||||
super.bar()
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
open class A<T> {
|
||||
open fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class B<T> : A<T>() {
|
||||
override fun foo() {
|
||||
super.foo()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classId": "test/A",
|
||||
"oldName": "foo",
|
||||
"newName": "bar"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classId": "test/B",
|
||||
"oldName": "foo",
|
||||
"newName": "bar"
|
||||
}
|
||||
Reference in New Issue
Block a user