File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import java.net.URL
1616import java.time.LocalDateTime
1717import java.time.LocalTime
1818import kotlin.reflect.KType
19+ import kotlin.reflect.KVariance
1920import kotlin.reflect.full.isSubtypeOf
2021import kotlin.reflect.jvm.jvmErasure
2122import kotlin.reflect.typeOf
@@ -89,7 +90,12 @@ internal fun renderType(type: KType?): String {
8990 append(name)
9091 if (type.arguments.isNotEmpty()) {
9192 val arguments = type.arguments.joinToString {
92- renderType(it.type)
93+ when (it.variance) {
94+ null -> " *"
95+ KVariance .INVARIANT -> renderType(it.type)
96+ KVariance .IN -> " in ${renderType(it.type)} "
97+ KVariance .OUT -> " out ${renderType(it.type)} "
98+ }
9399 }
94100 append(" <$arguments >" )
95101 }
You can’t perform that action at this time.
0 commit comments