Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set modifier order based on Kotlin coding conventions #3056

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

3flex
Copy link
Member

@3flex 3flex commented Sep 7, 2020

https://kotlinlang.org/docs/reference/coding-conventions.html#modifiers

If a declaration has multiple modifiers, always put them in the following order:

public / protected / private / internal
expect / actual
final / open / abstract / sealed / const
external
override
lateinit
tailrec
vararg
suspend
inner
enum / annotation / fun // as a modifier in `fun interface`
companion
inline
infix
operator
data

@schalkms schalkms merged commit 3e2be07 into master Sep 7, 2020
@schalkms schalkms deleted the 3flex-patch-1 branch September 7, 2020 10:47
@arturbosch arturbosch added this to the 1.13.0 milestone Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants