KT-18786: J2K should move all properties to top of class
#KT-18786 fixed
This commit is contained in:
+5
-4
@@ -1,9 +1,10 @@
|
||||
class B {
|
||||
|
||||
var yy = ""
|
||||
private set
|
||||
|
||||
internal fun foo(a: AAA) {
|
||||
a.x = a.x + 1
|
||||
yy += "a"
|
||||
}
|
||||
|
||||
var yy = ""
|
||||
private set
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@ package test
|
||||
|
||||
open class BaseOtherPackage protected constructor() {
|
||||
|
||||
protected var i = 1
|
||||
|
||||
protected fun foo() {
|
||||
|
||||
}
|
||||
|
||||
protected var i = 1
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
package test
|
||||
|
||||
internal object Utils {
|
||||
|
||||
val staticField = 1
|
||||
fun foo1(p: Int) {}
|
||||
fun foo2(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
val staticField = 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user