Add new line after modifier list if last child is comment
#KT-30804 Fixed
This commit is contained in:
@@ -4,5 +4,5 @@ abstract class B() {
|
||||
}
|
||||
|
||||
abstract class A() : B() {
|
||||
abstract override <caret>fun foo()
|
||||
abstract override<caret> fun foo()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
@Deprecated("")
|
||||
/* some comment */
|
||||
final<caret> val x: Int = 42
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
@Deprecated("")
|
||||
/* some comment */
|
||||
val x: Int = 42
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
@Deprecated("") //some comment
|
||||
final<caret> val x: Int = 42
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
@Deprecated("") //some comment
|
||||
val x: Int = 42
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
class A() {
|
||||
@Deprecated("") // wd
|
||||
final<caret> constructor(i: Int): this()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
class A() {
|
||||
@Deprecated("") // wd
|
||||
constructor(i: Int): this()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
class A @Deprecated("") // ds
|
||||
final<caret> constructor() {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Remove 'final' modifier" "true"
|
||||
|
||||
class A @Deprecated("") // ds
|
||||
constructor() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user