[FIR] Implement add in AbbreviatedTypeAttribute

This commit is contained in:
Kirill Rakhman
2023-09-18 10:27:47 +02:00
committed by Space Team
parent ad4d021cbf
commit 8ebd2fd1b7
@@ -12,7 +12,7 @@ class AbbreviatedTypeAttribute(
) : ConeAttribute<AbbreviatedTypeAttribute>() {
override fun union(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute? = null
override fun intersect(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute? = null
override fun add(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute? = null
override fun add(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute = other ?: this
override fun isSubtypeOf(other: AbbreviatedTypeAttribute?): Boolean = true
override fun toString(): String = "{${coneType.renderForDebugging()}=}"