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,10 @@
import java.time.LocalDate
import java.time.LocalDateTime
// RUNTIME_WITH_FULL_JDK
val s = object : Sam {
override fun test(d: LocalDate, t: LocalDateTime): List<String> {
val s = "$d$t"
return listOf(s)
}
}