[FIR] Implement add in AbbreviatedTypeAttribute
This commit is contained in:
committed by
Space Team
parent
ad4d021cbf
commit
8ebd2fd1b7
@@ -12,7 +12,7 @@ class AbbreviatedTypeAttribute(
|
|||||||
) : ConeAttribute<AbbreviatedTypeAttribute>() {
|
) : ConeAttribute<AbbreviatedTypeAttribute>() {
|
||||||
override fun union(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute? = null
|
override fun union(other: AbbreviatedTypeAttribute?): AbbreviatedTypeAttribute? = null
|
||||||
override fun intersect(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 isSubtypeOf(other: AbbreviatedTypeAttribute?): Boolean = true
|
||||||
override fun toString(): String = "{${coneType.renderForDebugging()}=}"
|
override fun toString(): String = "{${coneType.renderForDebugging()}=}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user