Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
618e6d9c
Commit
618e6d9c
authored
Dec 31, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explict `operator` modifier for `fun subList`
parent
89b39de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
...nMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
+2
-2
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageChain.kt
View file @
618e6d9c
...
...
@@ -278,7 +278,7 @@ internal inline class MessageChainImpl constructor(
* Elements will not be instances of [MessageChain]
*/
private
val
delegate
:
MutableList
<
Message
>
)
:
Message
,
MutableList
<
Message
>,
)
:
Message
,
MutableList
<
Message
>,
// do not `by delegate`, bcz Inline class cannot implement an interface by delegation
MessageChain
{
constructor
(
vararg
messages
:
Message
)
:
this
(
messages
.
toMutableList
())
...
...
@@ -316,7 +316,7 @@ internal inline class MessageChainImpl constructor(
override
fun
retainAll
(
elements
:
Collection
<
Message
>):
Boolean
=
delegate
.
retainAll
(
elements
)
override
fun
set
(
index
:
Int
,
element
:
Message
):
Message
=
delegate
.
set
(
index
,
element
)
override
fun
subList
(
fromIndex
:
Int
,
toIndex
:
Int
):
MutableList
<
Message
>
=
delegate
.
subList
(
fromIndex
,
toIndex
)
override
fun
iterator
():
MutableIterator
<
Message
>
=
delegate
.
iterator
()
override
operator
fun
iterator
():
MutableIterator
<
Message
>
=
delegate
.
iterator
()
override
operator
fun
contains
(
element
:
Message
):
Boolean
=
delegate
.
contains
(
element
)
override
val
size
:
Int
get
()
=
delegate
.
size
// endregion
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment