K2: don't duplicate custom annotations in types #KT-54275 Fixed
This commit is contained in:
committed by
Space Team
parent
d491eba629
commit
62ba1277bb
+1
-1
@@ -20,7 +20,7 @@ FILE: exceptionInRepeatedAnnotation.kt
|
||||
public final inline fun <reified E : R|Event|> R|EventHandler<E>|.withPriority(): R|EventListener<@R|kotlin/ParameterName|(name = String(e)) E>| {
|
||||
^withPriority Q|EventListener|.R|/EventListener.Companion.invoke|<R|@R|kotlin/ParameterName|(name = String(e)) E|>(this@R|/withPriority|)
|
||||
}
|
||||
public final inline fun <reified E : R|Event|> R|EventHandler<E>|.withDefaultPriority(): R|EventListener<@R|kotlin/ParameterName|(name = String(e)) @R|kotlin/ParameterName|(name = String(e)) E>| {
|
||||
public final inline fun <reified E : R|Event|> R|EventHandler<E>|.withDefaultPriority(): R|EventListener<@R|kotlin/ParameterName|(name = String(e)) E>| {
|
||||
^withDefaultPriority this@R|/withDefaultPriority|.R|/withPriority|<R|@R|kotlin/ParameterName|(name = String(e)) E|>()
|
||||
}
|
||||
public abstract class Event : R|kotlin/Any| {
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class CustomAnnotationTypeAttribute(val annotations: List<FirAnnotation>) : Cone
|
||||
override fun intersect(other: CustomAnnotationTypeAttribute?): CustomAnnotationTypeAttribute? = null
|
||||
|
||||
override fun add(other: CustomAnnotationTypeAttribute?): CustomAnnotationTypeAttribute {
|
||||
if (other == null) return this
|
||||
if (other == null || other === this) return this
|
||||
return CustomAnnotationTypeAttribute(annotations + other.annotations)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user