aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt
index c40c48a2..2266b691 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureUtils.kt
@@ -35,14 +35,15 @@ object KotlinSignatureUtils : JvmSignatureUtils {
val Bound.driOrNull: DRI?
get() {
return when (this) {
- is TypeParameter -> this.dri
- is TypeConstructor -> this.dri
- is Nullable -> this.inner.driOrNull
- is PrimitiveJavaType -> this.dri
+ is TypeParameter -> dri
+ is TypeConstructor -> dri
+ is Nullable -> inner.driOrNull
+ is PrimitiveJavaType -> dri
is Void -> DriOfUnit
is JavaObject -> DriOfAny
is Dynamic -> null
is UnresolvedBound -> null
+ is TypeAliased -> typeAlias.driOrNull
}
}
@@ -57,6 +58,7 @@ object KotlinSignatureUtils : JvmSignatureUtils {
is UnresolvedBound -> emptyList()
is Variance<*> -> inner.drisOfAllNestedBounds
is Star -> emptyList()
+ is TypeAliased -> listOfNotNull(typeAlias.driOrNull, inner.driOrNull)
}
}