Lilly
03/31/2021, 7:49 PMinterface Foo {
val bar: Map<String, String>
get() = mapOf("1" to "1")
}
I would say yes but not surerandomcat
03/31/2021, 7:52 PMRussell Stewart
03/31/2021, 8:32 PMlazy
delegate:
val bar: Map<String, String>
by lazy {
mapOf("1" to "1")
}
Lilly
03/31/2021, 9:24 PMRussell Stewart
03/31/2021, 9:24 PMLilly
03/31/2021, 9:47 PMDelegated properties are not allowed in interfaces
Russell Stewart
03/31/2021, 9:48 PMLilly
03/31/2021, 9:48 PMLilly
03/31/2021, 9:48 PMgildor
03/31/2021, 11:33 PMcorneil
04/01/2021, 8:14 AMval bar = mapOf("1" to "1")