mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-09 10:26:59 +08:00
Fix EventChannelKotlinExtensions resolution ambiguity
This commit is contained in:
parent
d3dc756a50
commit
c3b6342d34
@ -30,7 +30,6 @@ import kotlin.internal.LowPriorityInOverloadResolution
|
||||
* @see EventChannel.subscribe
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||
crossinline handler: suspend E.(E) -> ListeningStatus,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -51,7 +50,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribe
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
@JvmName("subscribe1")
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||
crossinline handler: suspend (E) -> ListeningStatus,
|
||||
@ -73,7 +71,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribe
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||
crossinline handler: E.(E) -> ListeningStatus,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -94,7 +91,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribe
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||
crossinline handler: (E) -> ListeningStatus,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -114,7 +110,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
*/
|
||||
@JvmName("subscribeAlways1")
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||
crossinline handler: suspend (E) -> Unit,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -134,7 +129,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribeAlways
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||
crossinline handler: suspend E.(E) -> Unit,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -153,7 +147,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribeAlways
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||
crossinline handler: E.(E) -> Unit,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
@ -172,7 +165,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
||||
* @see EventChannel.subscribeAlways
|
||||
*/
|
||||
@JvmSynthetic
|
||||
@LowPriorityInOverloadResolution
|
||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||
crossinline handler: (E) -> Unit,
|
||||
priority: EventPriority = EventPriority.NORMAL,
|
||||
|
Loading…
Reference in New Issue
Block a user