KT-18786: J2K should move all properties to top of class
#KT-18786 fixed
This commit is contained in:
+20
-20
@@ -17,23 +17,9 @@ internal class C {
|
||||
*/
|
||||
private val i: Int = 0
|
||||
|
||||
/**
|
||||
* This is a function doc comment.
|
||||
*/
|
||||
fun foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
fun f1() {}
|
||||
|
||||
//simple one line comment for field
|
||||
var j: Int = 0
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
fun f2() {}
|
||||
|
||||
//double c style
|
||||
//comment before field
|
||||
var k: Int = 0
|
||||
@@ -46,7 +32,24 @@ internal class C {
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
fun f3() {}
|
||||
var l: Int = 0
|
||||
|
||||
/*two*/ /*comments*//*line*/
|
||||
var z: Int = 0
|
||||
|
||||
/**
|
||||
* This is a function doc comment.
|
||||
*/
|
||||
fun foo() {
|
||||
/* This is a function comment */
|
||||
}
|
||||
|
||||
//simple one line comment for function
|
||||
fun f1() {}
|
||||
|
||||
//double c style
|
||||
//comment before function
|
||||
fun f2() {}
|
||||
|
||||
//combination
|
||||
/** of
|
||||
@@ -56,8 +59,5 @@ internal class C {
|
||||
* different
|
||||
*/
|
||||
//comments
|
||||
var l: Int = 0
|
||||
|
||||
/*two*/ /*comments*//*line*/
|
||||
var z: Int = 0
|
||||
}
|
||||
fun f3() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user