aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-08-21 16:29:39 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-08-21 17:51:18 +0200
commitf2635289b1923866843e1dd47423bd6ca74c2cb1 (patch)
treee669d400535b390c87fa121224d0ecb9fd40b048 /core/src/main/kotlin
parent705cbd313838db9f0c64d8f2bc7947ccbb40ed19 (diff)
downloaddokka-f2635289b1923866843e1dd47423bd6ca74c2cb1.tar.gz
dokka-f2635289b1923866843e1dd47423bd6ca74c2cb1.tar.bz2
dokka-f2635289b1923866843e1dd47423bd6ca74c2cb1.zip
Replace SelfType with family of RecursiveTypes
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/links/DRI.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt
index e73c2faa..8dfac80c 100644
--- a/core/src/main/kotlin/links/DRI.kt
+++ b/core/src/main/kotlin/links/DRI.kt
@@ -68,8 +68,8 @@ data class TypeConstructor(
(if (params.isNotEmpty()) "[${params.joinToString(",")}]" else "")
}
-object SelfType : TypeReference() {
- override fun toString() = "^"
+data class RecursiveType(val rank: Int): TypeReference() {
+ override fun toString() = "^".repeat(rank + 1)
}
data class Nullable(val wrapped: TypeReference) : TypeReference() {