diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/links/DRI.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt index b7e5dd1c..220ed719 100644 --- a/core/src/main/kotlin/links/DRI.kt +++ b/core/src/main/kotlin/links/DRI.kt @@ -101,7 +101,7 @@ sealed class TypeReference { private fun fromProjection(t: TypeProjection, r: KotlinType? = null): TypeReference = if (t.isStarProjection) { - Nullable(TypeConstructor("kotlin.Any", emptyList())) + StarProjection } else { fromPossiblyNullable(t.type, r) } @@ -130,6 +130,10 @@ data class Nullable(val wrapped: TypeReference) : TypeReference() { override fun toString() = "$wrapped?" } +object StarProjection: TypeReference() { + override fun toString() = "*" +} + private operator fun <T> List<T>.component6(): T = get(5) private val KotlinType.constructorName |