Convert reference to lambda intention introduced #KT-13393 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
class Person(val name: String)
|
||||
|
||||
val persons = listOf("Jack", "Tom").map { Person(it) }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Person(val name: String)
|
||||
|
||||
val persons = listOf("Jack", "Tom").map(::Person)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a callable function reference to the lambda expression
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user