Implement intentions to add/remove braces to/from when entries #KT-12043 Fixed
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user