KT-5717 "Replace 'when' with 'if'" loses a comment
#KT-5717 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun foo(b: Boolean) {
|
||||
<caret>when {
|
||||
// comment 1
|
||||
b -> 1 // comment 2
|
||||
|
||||
else -> 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(b: Boolean) {
|
||||
if (// comment 1
|
||||
b) 1 // comment 2
|
||||
else 2
|
||||
}
|
||||
Reference in New Issue
Block a user