Change function signature: add/change receiver type

#KT-21799 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-12-10 17:31:50 +09:00
committed by klunnii
parent 9f3ce099ee
commit f20a6b7fe1
6 changed files with 51 additions and 2 deletions
@@ -0,0 +1,8 @@
// "Change function signature to 'fun Int.foo(a: String)'" "true"
abstract class C {
abstract fun Int.foo(a: String)
}
class B : C() {
<caret>override fun foo(a: Int) {}
}
@@ -0,0 +1,8 @@
// "Change function signature to 'fun Int.foo(a: String)'" "true"
abstract class C {
abstract fun Int.foo(a: String)
}
class B : C() {
override fun Int.foo(a: String) {}
}
@@ -0,0 +1,8 @@
// "Change function signature to 'fun Int.foo(a: String)'" "true"
abstract class C {
abstract fun Int.foo(a: String)
}
class B : C() {
<caret>override fun String.foo(a: Int) {}
}
@@ -0,0 +1,8 @@
// "Change function signature to 'fun Int.foo(a: String)'" "true"
abstract class C {
abstract fun Int.foo(a: String)
}
class B : C() {
override fun Int.foo(a: String) {}
}