We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c96ee1 commit e3f0efaCopy full SHA for e3f0efa
ksp-plugin/src/main/kotlin/kotlinx/rpc/codegen/RPCClientServiceGenerator.kt
@@ -64,7 +64,7 @@ class RPCClientServiceGenerator(private val codegen: CodeGenerator) {
64
writer.writeLine("import kotlinx.rpc.*")
65
writer.writeLine("import kotlin.reflect.typeOf")
66
writer.writeLine("import kotlin.coroutines.CoroutineContext")
67
- service.collectRootImports().forEach {
+ service.collectRootImports().distinctBy { it.simpleName.asString() }.forEach {
68
writer.writeLine("import ${it.simpleName.asString()}")
69
}
70
writer.newLine()
0 commit comments