Files
Toshiaki Kameyama 2b21f03d04 [kotlin] "Join declaration and assignment": correctly move comments to property declaration
^KTIJ-26690 Fixed

GitOrigin-RevId: 87bb5572a3cb0918f73afbe00be10c411f2dd829
2023-08-22 12:28:07 +00:00

14 lines
237 B
Kotlin

// AFTER-WARNING: Variable 'foo' is never used
fun test() {
// comment 1
// comment 2
<caret>val foo: String // comment 3
// comment 4
bar()
// comment 5
// comment 6
foo = "" // comment 7
}
fun bar() {}