aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/links
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-02-18 11:59:52 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-18 17:15:14 +0100
commit91b5b4cc19a4ef6155cadba04ad016625402b00e (patch)
tree2d21246ee42c1f6b6de73794387f899bb4f72801 /core/src/main/kotlin/links
parent64b5d214a61dd7964ddad46f3c91475336063d78 (diff)
downloaddokka-91b5b4cc19a4ef6155cadba04ad016625402b00e.tar.gz
dokka-91b5b4cc19a4ef6155cadba04ad016625402b00e.tar.bz2
dokka-91b5b4cc19a4ef6155cadba04ad016625402b00e.zip
Fixes not recognizing star projection in dris
Diffstat (limited to 'core/src/main/kotlin/links')
-rw-r--r--core/src/main/kotlin/links/DRI.kt6
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