Quick-Fixes: Fix signature configuration for extension functions
#KT-7019 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
|
||||
fun foo(f: Int.(Int, Int) -> Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo {(i: Int, i1: Int) -> 0 }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
fun Int.f() {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
1.f()
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
|
||||
fun foo(f: Int.(Int, Int) -> Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo { <caret>(a: Int) -> 0 }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Remove parameter 'x'" "true"
|
||||
|
||||
fun Int.f(<caret>x: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun test() {
|
||||
1.f(2)
|
||||
}
|
||||
Reference in New Issue
Block a user