diff options
Diffstat (limited to 'core/src/main/kotlin/links/DRI.kt')
-rw-r--r-- | core/src/main/kotlin/links/DRI.kt | 4 |
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() { |