Add intention to convert SAM lambda to anonymous object #KT-25718 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-10-18 19:24:15 +09:00
committed by Vyacheslav Gerasimov
parent eedb69b5e4
commit d06b04f025
33 changed files with 369 additions and 87 deletions
@@ -0,0 +1,8 @@
val runnable = object : Runnable {
override fun run() {
foo()
}
}
fun foo() {
}
@@ -0,0 +1,6 @@
val runnable = Runnable {
foo()
}
fun foo() {
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts a SAM conversion to an anonymous object.
</body>
</html>