Keep empty bodies for declarations with comments (KT-16078)

#KT-16078 Fixed
This commit is contained in:
Nikolay Krasko
2017-02-16 17:59:36 +03:00
parent e16b0524b6
commit d58707972d
13 changed files with 75 additions and 20 deletions
@@ -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
View File
@@ -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