[Commonizer] Metadata comparator: treat type nullability properly
^KT-62753
This commit is contained in:
committed by
Space Team
parent
7615d863d5
commit
1fe8b50c19
+2
@@ -1216,6 +1216,8 @@ class MetadataDeclarationsComparator private constructor(private val config: Con
|
||||
|
||||
private fun KmType.dumpToString(dumpExtras: Boolean): String = buildString {
|
||||
append(classifier.dumpToString(dumpClassifierType = false))
|
||||
if (isNullable) append("?")
|
||||
if (isDefinitelyNonNull) append("!!")
|
||||
if (arguments.isNotEmpty()) {
|
||||
arguments.joinTo(this, prefix = "<", postfix = ">") { argument ->
|
||||
argument.dumpToString(dumpExtras = false)
|
||||
|
||||
Reference in New Issue
Block a user