Bernhard
11/24/2020, 2:57 PMinterface 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: itkralli
11/24/2020, 2:59 PMfun interface
for this to work.Bernhard
11/24/2020, 2:59 PM