Add intention to convert SAM lambda to anonymous object #KT-25718 Fixed
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
eedb69b5e4
commit
d06b04f025
+8
@@ -0,0 +1,8 @@
|
||||
val runnable = object : Runnable {
|
||||
override fun run() {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
val runnable = Runnable {
|
||||
foo()
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts a SAM conversion to an anonymous object.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user