Quick-Fixes: Fix signature configuration for extension functions

#KT-7019 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-23 11:40:16 +03:00
parent 93f00db871
commit 0eda6c88b9
8 changed files with 58 additions and 5 deletions
@@ -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)
}