jean
02/05/2023, 11:30 AMval error = TypeVariableName(
name = "Error",
bounds = listOf(ClassName(Throwable::class.java.packageName, Throwable::class.java.simpleName)),
)
but kotlin poet automatically add import java.lang.Throwable
. How can I make it use kotlin.Throwable
instead of the java one? I tried to specify it in the ClassName
declaration but it did’t work.