You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var state = State.NOTHING
fun restore(bundle: Bundle) {
@Suppress("UNCHECKED_CAST")
state = bundle.getSerializable(KEY_STATE) as State
}
source code after ktfmt:
var state = State.NOTHING
fun restore(bundle: Bundle) {
@Suppress("UNCHECKED_CAST") state = bundle.getSerializable(KEY_STATE) as State
}
trying to compile and run the code, we get:
Task :app:compileLiteDebugKotlin FAILED
e: warnings found and -Werror specified
w: /***/**/*****/***/*****/*****/MyFile.kt: (83, 5): Annotations on block-level expressions are being parsed differently depending on presence of a new line after them. Use new line if whole block-level expression must be annotated or wrap annotated expression in parentheses
The text was updated successfully, but these errors were encountered:
source code before ktfmt:
source code after ktfmt:
trying to compile and run the code, we get:
The text was updated successfully, but these errors were encountered: