Skip to content

Commit

Permalink
Conflicting imports for root classes (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr3zee authored Aug 14, 2024
1 parent d3f73e4 commit 041608f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RPCClientServiceGenerator(private val codegen: CodeGenerator) {
writer.writeLine("import kotlinx.rpc.*")
writer.writeLine("import kotlin.reflect.typeOf")
writer.writeLine("import kotlin.coroutines.CoroutineContext")
service.collectRootImports().forEach {
service.collectRootImports().distinctBy { it.simpleName.asString() }.forEach {
writer.writeLine("import ${it.simpleName.asString()}")
}
writer.newLine()
Expand Down

0 comments on commit 041608f

Please sign in to comment.