KT-18786: J2K should move all properties to top of class
#KT-18786 fixed
This commit is contained in:
+2
-2
@@ -3,6 +3,8 @@
|
||||
package foo
|
||||
|
||||
internal class A {
|
||||
|
||||
private /*it's private*/ val field = 0
|
||||
fun /* nothing to return */ foo(/* no parameters at all */) {
|
||||
// let declare a variable
|
||||
// with 2 comments before
|
||||
@@ -12,8 +14,6 @@ internal class A {
|
||||
fun /* we return int*/ foo(/*int*/ p: Int/* parameter p */): Int { /* body is empty */
|
||||
}
|
||||
|
||||
private/*it's private*/ val field = 0
|
||||
|
||||
/*it's public*/ fun foo(s: String): Char {}
|
||||
|
||||
protected/*it's protected*/ fun foo(c: Char) {}
|
||||
|
||||
Reference in New Issue
Block a user