Create from Usage: Suggest synthetic function classes as extension receivers

This commit is contained in:
Alexey Sedunov
2015-09-29 19:14:40 +03:00
parent 1d83d75a82
commit 1f6f617546
5 changed files with 40 additions and 6 deletions
@@ -0,0 +1,5 @@
// "Create extension function 'bar'" "true"
fun foo(block: (Int) -> String) {
block.b<caret>ar()
}
@@ -0,0 +1,9 @@
// "Create extension function 'bar'" "true"
fun foo(block: (Int) -> String) {
block.bar()
}
fun <P1, R> ((P1) -> R).bar() {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}