Move variable declaration into when: fix comment place
#KT-31362 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
b5c4f3ecc8
commit
3bca1a50e3
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(style: Int?): Int {
|
||||
val a<caret> = style ?: 0 // comment
|
||||
return when (a) { 0 -> 0
|
||||
else -> a
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user