mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 11:30:13 +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
|
* @see EventChannel.subscribe
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||||
crossinline handler: suspend E.(E) -> ListeningStatus,
|
crossinline handler: suspend E.(E) -> ListeningStatus,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -51,7 +50,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribe
|
* @see EventChannel.subscribe
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
@JvmName("subscribe1")
|
@JvmName("subscribe1")
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||||
crossinline handler: suspend (E) -> ListeningStatus,
|
crossinline handler: suspend (E) -> ListeningStatus,
|
||||||
@ -73,7 +71,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribe
|
* @see EventChannel.subscribe
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||||
crossinline handler: E.(E) -> ListeningStatus,
|
crossinline handler: E.(E) -> ListeningStatus,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -94,7 +91,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribe
|
* @see EventChannel.subscribe
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribe(
|
||||||
crossinline handler: (E) -> ListeningStatus,
|
crossinline handler: (E) -> ListeningStatus,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -114,7 +110,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
*/
|
*/
|
||||||
@JvmName("subscribeAlways1")
|
@JvmName("subscribeAlways1")
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||||
crossinline handler: suspend (E) -> Unit,
|
crossinline handler: suspend (E) -> Unit,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -134,7 +129,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribeAlways
|
* @see EventChannel.subscribeAlways
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||||
crossinline handler: suspend E.(E) -> Unit,
|
crossinline handler: suspend E.(E) -> Unit,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -153,7 +147,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribeAlways
|
* @see EventChannel.subscribeAlways
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||||
crossinline handler: E.(E) -> Unit,
|
crossinline handler: E.(E) -> Unit,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
@ -172,7 +165,6 @@ public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>
|
|||||||
* @see EventChannel.subscribeAlways
|
* @see EventChannel.subscribeAlways
|
||||||
*/
|
*/
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
@LowPriorityInOverloadResolution
|
|
||||||
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
public inline fun <BaseEvent : Event, reified E : Event> EventChannel<BaseEvent>.subscribeAlways(
|
||||||
crossinline handler: (E) -> Unit,
|
crossinline handler: (E) -> Unit,
|
||||||
priority: EventPriority = EventPriority.NORMAL,
|
priority: EventPriority = EventPriority.NORMAL,
|
||||||
|
Loading…
Reference in New Issue
Block a user