mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
Remove .plus(Number)
This commit is contained in:
parent
922c3a1c78
commit
0163eea2f3
@ -86,19 +86,6 @@ interface Message {
|
|||||||
operator fun plus(another: String): MessageChain = this.followedBy(another.toString().toMessage())
|
operator fun plus(another: String): MessageChain = this.followedBy(another.toString().toMessage())
|
||||||
// `+ ""` will be resolved to `plus(String)` instead of `plus(CharSeq)`
|
// `+ ""` will be resolved to `plus(String)` instead of `plus(CharSeq)`
|
||||||
operator fun plus(another: CharSequence): MessageChain = this.followedBy(another.toString().toMessage())
|
operator fun plus(another: CharSequence): MessageChain = this.followedBy(another.toString().toMessage())
|
||||||
|
|
||||||
// do remove these primitive types, they can reduce boxing
|
|
||||||
operator fun plus(another: Int): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
|
|
||||||
operator fun plus(another: Double): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
operator fun plus(another: Long): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
operator fun plus(another: Short): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
operator fun plus(another: Byte): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
operator fun plus(another: Float): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
|
|
||||||
operator fun plus(another: Number): MessageChain = this.followedBy(another.toString().toMessage())
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user