Keep empty bodies for declarations with comments (KT-16078)
#KT-16078 Fixed
This commit is contained in:
@@ -7,8 +7,7 @@ internal class A// this is a primary constructor
|
||||
} // end of primary constructor body
|
||||
|
||||
// this is a secondary constructor 2
|
||||
constructor(s: String) : this(s.length) {
|
||||
} // end of secondary constructor 2 body
|
||||
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
|
||||
}// this is a secondary constructor 1
|
||||
// end of secondary constructor 1 body
|
||||
|
||||
|
||||
+3
-6
@@ -25,16 +25,14 @@ internal class C {
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
fun f1() {
|
||||
}
|
||||
fun f1() {}
|
||||
|
||||
//simple one line comment for field
|
||||
var j: Int = 0
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
fun f2() {
|
||||
}
|
||||
fun f2() {}
|
||||
|
||||
//double c style
|
||||
//comment before field
|
||||
@@ -48,8 +46,7 @@ internal class C {
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
fun f3() {
|
||||
}
|
||||
fun f3() {}
|
||||
|
||||
//combination
|
||||
/** of
|
||||
|
||||
Reference in New Issue
Block a user