Java to Kotlin converter: special conversion of some Collections methods
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import java.util.*
|
||||
import kotlin.Map
|
||||
|
||||
class A {
|
||||
fun foo(): Map<String, String> {
|
||||
val list1 = listOf()
|
||||
val list2 = listOf(1)
|
||||
val set1 = setOf()
|
||||
val set2 = setOf("a")
|
||||
return mapOf()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user