KT-18786: J2K should move all properties to top of class

#KT-18786 fixed
This commit is contained in:
Dimach
2017-07-14 03:01:39 +03:00
committed by Simon Ogorodnik
parent ccfcfd8721
commit a59021a25e
30 changed files with 117 additions and 103 deletions
+20 -20
View File
@@ -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() {}
}