`interface Importer {` `fun run(value: String)...
# announcements
b
interface Importer {
fun run(value: String): String
}
val x = listOf(
Importer { it.replace("h", "o")}
)
Gives me this on Kotlin 1.4.20: Interface Importer does not have constructors Unresolved reference: it
k
You need to use a
fun interface
for this to work.
b
aaah, thanks!