Implement intentions to add/remove braces to/from when entries #KT-12043 Fixed

This commit is contained in:
Kirill
2016-08-15 00:20:34 +03:00
committed by Mikhail Glukhikh
parent d68a681db5
commit 223fd9fad0
21 changed files with 239 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.AddBracesToWhenEntryIntention
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
fun foo(a: Int) {
when (a) {
1 -> {
foo(a)<caret>
}
}
}
@@ -0,0 +1,5 @@
fun foo(a: Int) {
when (a) {
1 -> foo(a)<caret>
}
}
@@ -0,0 +1,7 @@
fun foo(a: Int) {
when (a) {
1 -> {
foo(a)
}<caret>
}
}