Add intention to convert lambda to anonymous function #KT-7710 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8ef4b9a8e1
commit
8a20d1bf01
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(f: () -> Int) {
|
||||
f()
|
||||
}
|
||||
|
||||
fun main(args: String) {
|
||||
foo(fun(): Int { return 1 })
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(f: () -> Int) {
|
||||
f()
|
||||
}
|
||||
|
||||
fun main(args: String) {
|
||||
foo { 1 }
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a lambda expression into a call of an anonymous function.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user