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

11 lines
173 B
Kotlin

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