From 8ebd2fd1b78da1d1d6ca5d86b11423a8423b17be Mon Sep 17 00:00:00 2001 From: Kirill Rakhman Date: Mon, 18 Sep 2023 10:27:47 +0200 Subject: [PATCH] [FIR] Implement add in AbbreviatedTypeAttribute --- .../org/jetbrains/kotlin/fir/types/AbbreviatedTypeAttribute.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/AbbreviatedTypeAttribute.kt b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/AbbreviatedTypeAttribute.kt index 4ce57340329..5d0cbf56d4b 100644 --- a/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/AbbreviatedTypeAttribute.kt +++ b/compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/AbbreviatedTypeAttribute.kt @@ -12,7 +12,7 @@ class AbbreviatedTypeAttribute( ) : ConeAttribute() { 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()}=}"