Create from Usage: Suggest synthetic function classes as extension receivers
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// "Create extension function 'bar'" "true"
|
||||
|
||||
fun foo(block: (Int) -> String) {
|
||||
block.b<caret>ar()
|
||||
}
|
||||
Vendored
+9
@@ -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.
|
||||
}
|
||||
Reference in New Issue
Block a user