Change function signature: add/change receiver type
#KT-21799 Fixed
This commit is contained in:
committed by
klunnii
parent
9f3ce099ee
commit
f20a6b7fe1
@@ -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) {}
|
||||
}
|
||||
+8
@@ -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) {}
|
||||
}
|
||||
+8
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user